[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tar --exclude works with Mandrake but not potato



Tar did change the exclude semantics between slink and potato:

Patterns containing / now exclude only file names whose prefix match.

>From tar info:

   A PATTERN containing `/' excludes a name if an initial subsequence
of the name's components matches PATTERN; a PATTERN without `/'
excludes a name if it matches any of its name components.  For example,
the pattern `*b/RCS' contains `/', so it excludes `blob/RCS' and
`.blob/RCS/f' but not `blob/RCSit/RCS' or `/blob/RCS', whereas the
pattern `RCS' excludes all these names.  Conversely, the pattern `*.o'
lacks `/', so it excludes `.f.o', `d/f.o', and `d.o/f'.

Maybe this is causing your problems ... (it did mine).

-Igor Mozetic



Reply to: