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