From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Wed, 14 Oct 2015 22:02:18 +0300 Message-ID: <83vba9w9xh.fsf@gnu.org> References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83lhb5xw5w.fsf@gnu.org> <87wpupqo60.fsf@Rainer.invalid> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1444849427 1460 80.91.229.3 (14 Oct 2015 19:03:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 19:03:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 21:03:38 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZmRKn-0008Sb-Nj for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2015 21:03:33 +0200 Original-Received: from localhost ([::1]:44046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmRKn-0002Ny-36 for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2015 15:03:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmRJg-0002Js-HP for emacs-devel@gnu.org; Wed, 14 Oct 2015 15:02:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmRJc-00082t-EK for emacs-devel@gnu.org; Wed, 14 Oct 2015 15:02:24 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:58112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmRJc-00081K-6A for emacs-devel@gnu.org; Wed, 14 Oct 2015 15:02:20 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NW8006004L3GI00@mtaout29.012.net.il> for emacs-devel@gnu.org; Wed, 14 Oct 2015 22:01:40 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW8004RG4USMS20@mtaout29.012.net.il>; Wed, 14 Oct 2015 22:01:40 +0300 (IDT) In-reply-to: <87wpupqo60.fsf@Rainer.invalid> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191587 Archived-At: > From: Achim Gratz > Date: Wed, 14 Oct 2015 20:51:19 +0200 > > > For .tar.bz2, uncompress with bunzip2 to get .tar, for .tar.xz, > > uncompress with unxz to get .tar. Is that what you wanted? > > This is what a reasonably recent GNU tar offers: GNU Tar needs the programs I mentioned anyway, so if GNU Tar can handle those archives, an explicit pipe with those programs will also work. By contrast, detecting GNU Tar and then providing an alternative for non-GNU Tar versions will IMO make the code much more complex, for no good reason. And, as long as we are talking about this, I'd suggest to add support for libarchive's bsdtar, which can unpack all those formats (and many more) without any external programs. Adding that support boils down to checking if bsdtar is available.