www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/17/05:18:33

Date: Sun, 17 Jan 1999 12:17:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Dirk Färber <faerber AT ant DOT uni-hannover DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: tar --exclude
In-Reply-To: <77ne5h$3es$1@newsserver.rrzn.uni-hannover.de>
Message-ID: <Pine.SUN.3.91.990117121648.278Q-100000@is>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id FAA18332
Reply-To: djgpp AT delorie DOT com

On 15 Jan 1999, Dirk Färber wrote:

> The manual says, that files explicitly included in the file list override
> the exclude list. I hope, that * is not an explicit inclusion in this 
> sense.

Of course * is explicitly including every file in the directory, since
the DJGPP startup code expands * to the list of all files, just like
it happens on Unix.  And that is why --exclude doesn't seem to work in
your case.

Instead of "*" try ".", like this:

>   tar -cvz --exclude="*.log" -f archive.tgz .

(You MUST put quotes around *.log.)

- Raw text -


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