[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--exclude doesn't work if the pattern contains a /
From: |
Marvin Solomon |
Subject: |
--exclude doesn't work if the pattern contains a / |
Date: |
Thu, 28 Jun 2001 06:52:51 -0500 |
First a question about versions. According to
http://www.gnu.org/directory/tar.html
"Version : 1.13 released on 1999-07-08; 1.13.17 beta 2000-01-17"
But all the download sites (e.g. ftp://ftp.gnu.org/gnu/tar/)
provide only version 1.13, dated July 1999.
Now the real bug report: I can't get an --exclude pattern containing
a slash to exclude anything. See msg1 (attached).
The option works as specified on my Linux box (RH 6.1). According to
tar --version, it's "tar (GNU tar) 1.13.11". But I need this on Solaris,
and I can't find source for 1.13.11 (or 1.13.17) anywhere.
I found a bunch of sniping between Paul Eggert and Ulrich Drepper on
a Debian list. See
http://bugs.debian.org/cgi-bin/bugreport.cgi?archive=no&bug=59829
It concludes with
On Wed, Dec 13, 2000 at 06:03:27PM -0600, Debian Bug Tracking System wrote:
> Processing commands for address@hidden:
>
> > severity 59829 fixed
> Bug#59829: libc6: [PATCH] fnmatch() behaves oddly with *s and
FNM_LEADING_DIR
> Severity set to `fixed'.
Thanks, closing.
This is all very well, but I still can't get a version of tar that works.
Any help would be most appreciated.
[concept:~/tmpdir] tar -cvz --file=save.tgz --exclude='top/olog/alog/file1' top
top/
top/olog/
top/olog/alog/
top/olog/alog/file1
top/olog/alog/file2
top/olog/file1
top/olog/file2
top/file1
top/file2
[concept:~/tmpdir] tar -cvz --file=save.tgz --exclude='*/olog/alog/file1' top
top/
top/olog/
top/olog/alog/
top/olog/alog/file1
top/olog/alog/file2
top/olog/file1
top/olog/file2
top/file1
top/file2
[concept:~/tmpdir] tar -cvz --file=save.tgz --exclude='*/olog/alog/*' top
top/
top/olog/
top/olog/alog/
top/olog/alog/file1
top/olog/alog/file2
top/olog/file1
top/olog/file2
top/file1
top/file2
[concept:~/tmpdir] tar -cvz --file=save.tgz --exclude='olog/alog' top
top/
top/olog/
top/olog/alog/
top/olog/alog/file1
top/olog/alog/file2
top/olog/file1
top/olog/file2
top/file1
top/file2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- --exclude doesn't work if the pattern contains a /,
Marvin Solomon <=