I'm using tar (GNU tar) 1.16.1 and have an archive with the following entries.
Files/report1.html
Files/report2.html
Files/report3.html
Files/report4.html
D:/Bkp/sol/
D:/Bkp/sol/test1.pl
D:/Bkp/sol/test2.pl
D:/Bkp/sol/test3.pl

Whenever, I try to exclude files starting with "D:/" its not working as 
expected.
The command used is,
tar tf test.tar --anchored --exclude="D:/"
and if the command is changed to,
tar tf test.tar --anchored --exclude="Bkp" then its working fine. It seems the 
--exclude is not working properly if the pattern starts with windows drive 
letter. The same thing is working fine for inclusion patterns.
tar tf test.tar --anchored "D:/" (working fine)

This seems to be a bug as the same thing works fine in tar 1.13.25

Regards,
Mohankumar
 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Reply via email to