bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] --exclude flagg documentation unclear, and possibly incorrect


From: Chris Moore
Subject: [Bug-tar] --exclude flagg documentation unclear, and possibly incorrect
Date: Tue, 28 Feb 2006 16:59:42 +0100

File: "tar.info",  Node: "controlling pattern-patching with exclude" says:

> Normally, a pattern matches a name if an initial subsequence of the
> name's components matches the pattern, [...]

I think that needs clarification.  If the name is
"/usr/local/cache/file.txt" then the name's components are "usr",
"local", "cache" and "file.txt", and the initial subsequences of this
sequence of components are:

"usr/local/cache/file", "usr/local/cache", "usr/local" and "usr".

However, the pattern also matches if "local/cache" matches the
pattern, so the word "initial" is misleading.

Just having "cal/cache" match the pattern isn't enough - the pattern
must match a whole subsequence of the name's components.  I assume
that's what the word "initial" there was trying to convey, but it
wasn't working.

As you can see, I'm not good with words, so I won't attempt to write a
better description.  I just thought I should point out that the
documentation is currently misleading (and appears to contradict the
"Default is `--no-anchored'" statement a few paragraphs beneath it).

$ tar --version
tar (GNU tar) 1.15.1

Chris.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]