X-Spam-Check-By: sourceware.org Message-ID: <92ec694d0702120718q37650145vb36d97b337b5aaf8@mail.gmail.com> Date: Mon, 12 Feb 2007 20:48:37 +0530 From: "Mohankumar Periasami" To: cygwin AT cygwin DOT com Subject: tar --exclude not working MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/