From: cgf AT bbc DOT com (Chris Faylor) Subject: Re: .tar.gz 28 Jul 1997 12:13:01 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: References: <199707280224 DOT MAA02916 AT rdirs7 DOT hrl DOT com DOT au> <199707280923 DOT TAA12004 AT murlibobo DOT cs DOT mu DOT OZ DOT AU> Reply-To: cgf AT bbc DOT com X-Newsreader: trn 4.0-test57 (27 Apr 97) Original-To: gnu-win32 AT cygnus DOT com X-Mailer: Perl5 Mail::Internet v1.28 Original-Sender: owner-gnu-win32 AT cygnus DOT com In article <199707280923 DOT TAA12004 AT murlibobo DOT cs DOT mu DOT OZ DOT AU>, Fergus Henderson wrote: >>If you are not using GNU tar then you may have to unzip the file >>before untarring >> >> gunzip -c file.tar.gz | tar xf - > >Last time I checked (version b17.1), this did not work, >because pipes were opened in text mode, not binary mode. >Instead I had to use > > gunzip file.tar.gz > tar xf - file.tar > >Has this changed since b17.1? I don't think so. But using the 'z' option to gnutar works as it always has: tar xzf file.tar.gz There has been at least one copy of bash floating around which was compiled with O_BINARY as the default for open. That would allow the pipe version above to work. -- http://www.bbc.com/ cgf AT bbc DOT com "Strange how unreal VMS=>UNIX Solutions Boston Business Computing the real can be." - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".