Using cdbackup-1.0 on NetBSD, I tried the following
<code>
# cdbkup 0 -s 8 -l "mjnr" -e "/mjnr/Program Files"
/dev/cdrom /mjnr
</code>
It did not work. Using ps shows that cdbkup has
attempted to quote the space in the word "Program
Files" by putting in the octal for a backslash.
<code>
/usr/local/bin/perl5 -w /usr/pkg/sbin/cdbkup 0 -s 8 -l
mjnr -e /mjnr/Program Files /dev/cdrom /mjnr (perl)
sh -c /usr/pkg/sbin/cdsplit
--name=mjnr-2004-06-18-0.tar.gz --speed=8
--workdir=/var/tmp/cdworkdir -- /dev/cdrom \134(cd\134
/mjnr\134 \134&\134&\134 /usr/bin/tar\134 -f\134 -\134
-cSlz\134 --listed-incremental\134=/tmp/cdbkup-mjnr\134
--label\134=mjnr-2004-06-18-0\134
--exclude\134=./Program\134\134\134\134\134\134\134
Files\134 .\134)
</code>
I haven't looked at the code yet, but this may be a
case of the cdsplit script assuming that /bin/sh is
actually bash, which is not true under NetBSD (and some
distributions of GNU/Linux).