bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] exclude wildcards with backslash


From: Jean-Louis Martineau
Subject: [Bug-tar] exclude wildcards with backslash
Date: Thu, 06 May 2010 09:15:02 -0400
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

Hi,

I have a tar file with many files, I want to extract everything except the file 't*s', I used to do:
$ tar xf file.tar --wildcards --exclude 't\*s'
It worked for all tar version up to 1.22
With tar-1.23, it extract everything except the file 't\*s.

I can extract that file with:
$ tar xf file.tar --wildcards --add-file 't\*s'

I expected the --exclude to works the same way as --add-file

I know I can do:
$ tar xf ../t.tar --no-wildcards --exclude 't*s'

Why this behavior change in tar?

There is no way to exclude all files that start with 't' and end with '*s'
--wildcards --exclude 't\**s' will not works.

Jean-Louis




reply via email to

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