bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] tar with wildchars


From: Helmut Waitzmann
Subject: Re: [Bug-tar] tar with wildchars
Date: Sat, 05 Mar 2005 05:26:42 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

"PPHU" <address@hidden> writes:

>When I untar some .tar.gz files, I met these:
>
>#tar zxvf 200*.gz      
>tar: 200410.1258.dmp.tar.gz: Not found in archive
>tar: 200410.1226.dmp.tar.gz: Not found in archive
>tar: 200410.1251.dmp.tar.gz: Not found in archive
>tar: 200410.1218.dmp.tar.gz: Not found in archive
>tar: 200410.1245.dmp.tar.gz: Not found in archive
>tar: 200410.1210.dmp.tar.gz: Not found in archive
>tar: 200410.1236.dmp.tar.gz: Not found in archive
>tar: 200410.1203.dmp.tar.gz: Not found in archive
>tar: 200410.1229.dmp.tar.gz: Not found in archive
>tar: 200410.1254.dmp.tar.gz: Not found in archive
>tar: 200410.1221.dmp.tar.gz: Not found in archive
>tar: 200410.1247.dmp.tar.gz: Not found in archive
>tar: Error exit delayed from previous errors

Tar's behavior is perfectly correct.  It does exactly what you tell it to
do.

># tar zxvf 200410.1221.dmp.tar.gz 
>200410.1221.dmp
>#
>
>I think every .tar.gz files is fine and "tar" will work well if I use
>tar zxvf without wildchars.

You are right.

Try this command:

$ bash -c 'printf \ %q ${1+"$@"}; echo' bash tar zxvf 200*.gz

Instead of starting tar it will report what command would have been
started, if you had typed the command

$ tar zxvf 200*.gz

Now, look into the manual.  Hint:

What would the hypothetical command

$ tar zxvf 200410.1221.dmp.tar.gz 200410.1221.dmp

do?

What would the hypothetical command

$ tar zxvf 200410.1221.dmp.tar.gz 200410.1258.dmp.tar.gz

do?

Why does tar assume, that "200410.1221.dmp" should be a member of
"200410.1221.dmp.tar.gz"?

Why does tar assume, that "200410.1258.dmp.tar.gz" should be a member of
"200410.1221.dmp.tar.gz"?

Hope, that helps.

Helmut Waitzmann
-- 
Wenn Sie mir E-Mail schreiben, stellen |  When writing me e-mail, please
Sie bitte vor meine E-Mail-Adresse     |  precede my e-mail address with
meinen Vor- und Nachnamen, etwa so:    |  my full name, like
Helmut Waitzmann <address@hidden>, (Helmut Waitzmann) address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]