From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ju17v-0003pw-52 for garchives@archives.gentoo.org; Thu, 08 May 2008 08:05:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C21D5E02B4; Thu, 8 May 2008 08:05:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9BEB1E02B4 for ; Thu, 8 May 2008 08:05:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 3982667082 for ; Thu, 8 May 2008 08:05:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.143 X-Spam-Level: X-Spam-Status: No, score=-3.143 required=5.5 tests=[AWL=0.456, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id p93m9gHch83r for ; Thu, 8 May 2008 08:05:11 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id DB10F665D2 for ; Thu, 8 May 2008 08:05:09 +0000 (UTC) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Ju17e-0003h7-VG for gentoo-user@gentoo.org; Thu, 08 May 2008 08:05:02 +0000 Received: from zy-rieter.cyberlink.ch ([212.55.215.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 May 2008 08:05:02 +0000 Received: from michael.schmarck by zy-rieter.cyberlink.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 May 2008 08:05:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Michael Schmarck Subject: [gentoo-user] Re: Re: tar a brand new Gentoo install to a USB drive for safe keeping? Date: Thu, 08 May 2008 10:00:13 +0200 Organization: =?UTF-8?B?xYI=?= Message-ID: References: <5bdc1c8b0805031806k7a14e6d3v910c0957bd514e98@mail.gmail.com> <481D8E3B.10606@gnoo.eu> <5bdc1c8b0805040825w2a647669x15b8762422491655@mail.gmail.com> <5bdc1c8b0805041612j5f958d4cred584a5cfc929efc@mail.gmail.com> <20080505040443.GA29986@sys-0.woh.rr.com> <20080505093749.7a5faf56@loonquawl.digimed.co.uk> <20080506223334.1baf6612@loonquawl.digimed.co.uk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: zy-rieter.cyberlink.ch User-Agent: KNode/0.10.9 Sender: news X-Archives-Salt: 169147db-7697-494b-ad19-957e7d578812 X-Archives-Hash: 52e2a570bd76976bf30f71a11ec875d3 Neil Bothwick wrote: > On Tue, 06 May 2008 14:40:08 +0200, Michael Schmarck wrote: > >> > That hasn't been needed for a long time. Tar is able to detect bzip2 >> > and gzip compression and handle it automatically. >> >> That's only true for GNU tar. If you're also dealing with other >> systems where you might not have GNU tar, you might be "surprised" >> to find that "tar xvf file.tgz" doesn't work. > > However, this thread is specifically about using tar on /Gentoo, which > does use GNU tar. Well, nonetheless I think that it's a bad idea to get too used to GNUisms. Especially, if there are so easy "workarounds". >> Hence I think, that it is a good idea to keep on using z or j. > > That really depends on the level of portability your scripts need. Using > z or j is more portable, but also more complex for scripting. That's rather a question of how complex the "environment" is, that the script needs to deal with. If you really want to throw all different sort of things at your script (like .tar.gz, .tar.Z, .tar.bz2, .tar.lzma), then yes, the script would get more complex. Michael -- gentoo-user@lists.gentoo.org mailing list