Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Mon, 30 Dec 2002 18:19:39 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: tar wildcard problem Message-ID: <20021230231939.GD16336@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <002101c2b03a$7e5979a0$80d16b80 AT amer DOT cisco DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002101c2b03a$7e5979a0$80d16b80@amer.cisco.com> User-Agent: Mutt/1.5.1i On Mon, Dec 30, 2002 at 11:34:37AM -0800, Wai-Yip Tung (wtung) wrote: >I tried everything but non seems to work. This is my tar command: > > tar -T filename.txt -X xfilename.txt -cvWf $TAR_FILE > >And here is my exclude file xfilename.txt: >./*.bak >'*.bak' >"*.bak" >*.bak >file.txt >file.bak Have you tried this on linux? -T does not take files containing wildcards. Apparently -X should take patterns however, and that isn't working. Patches gratefully accepted. cgf >I have a workaround that does work. > > EXCLUDE_OPT=`cat exclude_opt.txt` > tar -T filename.txt -X xfilename.txt $EXCLUDE_OPT -cvWf $TAR_FILE > >This is my exclude_opt.txt file: >--exclude=*.class >--exclude=*.obj >--exclude=*.bak > >But this is really not nice. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/