From owner-freebsd-current@FreeBSD.ORG Wed Sep 8 05:35:14 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D82B716A4CE for ; Wed, 8 Sep 2004 05:35:14 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9EE443D1F for ; Wed, 8 Sep 2004 05:35:14 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id i885ZD90099874; Tue, 7 Sep 2004 22:35:14 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <413E9A11.8060804@freebsd.org> Date: Tue, 07 Sep 2004 22:35:13 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vladimir Grebenschikov References: <1094482168.60927.9.camel@localhost> In-Reply-To: <1094482168.60927.9.camel@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: "current@freebsd.org" Subject: Re: bsdtar vs gnutar X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 05:35:15 -0000 Vladimir Grebenschikov wrote: > > GNU tar has ability to show detailed info on extract in case when more > then one 'v' letter specified like: > > $ gtar -xvvzf arch.tar.gz > -rwxrwxr-x ivan/ivan 268 Sep 6 16:40 2004 install > $ tar -xvvzf arch.tar.gz > x install I'll look into this. Probably won't make it into 5.3, though. > Another problem, gnu tar output -v output while extracting on stdout, > but BSD tar output this on stderr ("tar -xvzf arch.tar.gz | head -n1" no > longer work) Not always. ;-) Sometimes gnutar outputs to stderr, sometimes to stdout. POSIX.1-1997 clearly specifies stderr. (Yet another place where gtar ignores the POSIX standards... ;-/ I suggest you try tar -xvzf arch.tar.gz |& head -n1 or tar -xvzf arch.tar.gz 2>&1 | head -n1 which will work correctly with either gtar or bsdtar. Cheers, Tim Kientzle