This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tar --exclude not working


Experts,

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)

Is this a bug? Can it be worked atound?
Please throw light on this..

Thanks in Advance,
Mohankumar

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]