From: Ed (hpux-admin@bluepolka.net)
Date: Wed Jul 31 2002 - 18:59:39 EDT
Hi All,
I have a mystery for the curious on some unexpected behavior of gunzip and
tar when pipelined. I have a directory 'mydir' with a number of subdirs
under it. When I "package" the dir as follows...
tar cvf - mydir | gzip -c > mydir.tgz
...I can see all files being appropriately added to the output file.
However, when I unpack them as follows...
gunzip -c mydir.tgz | tar xvf -
...there are a number of missing subdirectories. I have found a workaround
by breaking the tar and the gzip/gunzip steps into separate commands, but I'm
curious to know if anyone can explain this. This process has worked fine
until I noticed this today, AFAIK.
Thx in advance. -Ed
My config:
% uname -a
HP-UX ... B.11.00 E 9000/803 ...
% gunzip -V
gunzip 1.2.4 (18 Aug 93)
Compilation options:
DIRENT UTIME STDC_HEADERS HAVE_UNISTD_H
Not sure about what tar version.
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:17 EDT