Mail Archives: djgpp/1999/01/17/05:18:33
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 -