delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/12/10:19:05

X-Spam-Check-By: sourceware.org
Message-ID: <92ec694d0702120718q37650145vb36d97b337b5aaf8@mail.gmail.com>
Date: Mon, 12 Feb 2007 20:48:37 +0530
From: "Mohankumar Periasami" <karthikexa AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: tar --exclude not working
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019