Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <007e01bfe634$7df5eca0$3c5350d8@guinness>
From: "Matthew Smith" <matts@bluesguitar.org>
To: <cygwin@sourceware.cygnus.com>
References: <20000704222731.10345.qmail@hotmail.com> <396266A3.F2A18E80@cygnus.com> <20000705001223.49031.qmail@hotmail.com> <20000704212147.C3314@cygnus.com> <003401bfe631$74912b00$3c5350d8@guinness> <20000704233907.C3973@cygnus.com>
Subject: Re: Tar.exe doing nothing
Date: Tue, 4 Jul 2000 22:52:50 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

There's no need to be obnoxious about it.  I was just pointing out a method
that works on more than just cygwin.  Chill.

-Matt


> On Tue, Jul 04, 2000 at 10:31:06PM -0500, Matthew Smith wrote:
> >gunzip < filename.tar.gz | tar xvf -
> >
> >That will work with most any version of tar.
>
> Of course, we're talking about Cygwin, which uses GNU tar, and GNU
> tar will happily use the option that I mentioned.
>
> If you want to do more typing, this mechanism works great, too.
>
> Or, if you want to vary this slightly and confuse the issue a little more,
> you can also do:
>
> zcat filename.tar.gz | tar xvf -
> gzip -c -d filename.tar.gz | tar xvf -
> /bin/gunzip -c < ./filename.tar.gz | /bin/tar -x -v -f - -C .
>
> If you are looking to do the maximum amount of typing then the last option
> is obviously the best.
>
> cgf
>
> >> On Wed, Jul 05, 2000 at 02:12:33AM +0200, Jonas Jensen wrote:
> >> >Well, silly me :-)
> >> >
> >> >Now, 2 more questions about that:
> >> >
> >> >-What the hell is the purpuse of that feature?
> >>
> >> Tar used to be commonly used with a tape device.  If you don't use the
> >> -f option it defaults to an arbitrary device for extraction.  I assume
> >> that cygwin defaults to standard input.
> >>
> >> In case it isn't obvious to you, the Cygwin project did not invent the
> >> tar program.  This tar behavior is far from new.  The tar program has
> >> been a standard part of UNIX for a long long time.  Cygwin is a UNIX
> >> emulation environment, so...
> >>
> >> >-Is there an easy program to unzip the contents of a .tar.gz file
> >> >without first using gzip.exe and then tar.exe?  Or a good way to set
up
> >> >an alias/script to do this?
> >>
> >> I sounds like you still aren't reading the "tar --help" output very
> >> closely.
> >>
> >> The '-z' option automatically uncompresses an archive before extraction
> >> or creation:
> >>
> >> tar -xzf somefile.tar.gz
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

