[Top][All Lists]

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

Re: [Bug-tar] possible extraction issue : file named '['

From: Paul Eggert
Subject: Re: [Bug-tar] possible extraction issue : file named '['
Date: Sat, 20 May 2006 13:07:22 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Skunk Worx <address@hidden> writes:

> I am curious about why I can't incrementally extract a file named '['

GNU tar uses globbing when extracting from a file.  E.g.,

 tar -tf foo.tar '*.c'

will list all files whose names end in .c.

Clearly there's a bug in the way tar implements globbing, and it
should get fixed.

But there's a bigger question here.  I don't see where this behavior
of GNU tar is documented.  Perhaps I'm missing it, but I just don't
see it.  Also, this behavior is incompatible with traditional 'tar',
and (as your example shows) it makes it difficult to extract arbitrary
files by name from a tar image.

My feeling is that the globbing options like --ignore-case and
--anchored, which currently apply only to --exclude and the like,
should also apply to ordinary file names on the command line; and that
the default behavior should be like traditional Unix tar, i.e., no

This would be an incompatible change to GNU tar, but it would make GNU
tar compatible with other tars.  People who like globbing in file
names would be able to get that behavior by using the --wildcards


reply via email to

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