[PATCH] Exclude directories from any root filesystem
On Wed, Oct 24, 2007 at 04:35:56PM -0200, Otavio Salvador wrote:
> Maarten ter Huurne <maarten at treewalker.org> writes:
> > It treats any whitespace in the exclusion file as a separator, which means
> > means it's impossible to exclude a file or directory that contains a space
> > in its name. I don't think any Debian package uses spaces in file names, so
> > I guess this is not a problem.
> To work around your problem you can use something like (untested):
> while read line
> done < EXCLUDE
> It should work fine.
Read() will chomp leading and trailing whitespace on each line. To
handle all potential cases of whitespace (you can even have newlines
in filenames!) you'd probably need to use eval(), or #!/bin/bash or
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-live-devel/attachments/20071025/a6a03ac1/attachment.pgp