From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Achim Gratz Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Wed, 14 Oct 2015 20:51:19 +0200 Organization: Linux Private Site Message-ID: <87wpupqo60.fsf@Rainer.invalid> References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83lhb5xw5w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1444848778 23366 80.91.229.3 (14 Oct 2015 18:52:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Oct 2015 18:52:58 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 14 20:52:45 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 1ZmRAL-0005rt-4P for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2015 20:52:45 +0200 Original-Received: from localhost ([::1]:44022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmRAK-0000SI-GJ for ged-emacs-devel@m.gmane.org; Wed, 14 Oct 2015 14:52:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmR9D-0000NA-UZ for emacs-devel@gnu.org; Wed, 14 Oct 2015 14:51:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmR98-0003lq-QQ for emacs-devel@gnu.org; Wed, 14 Oct 2015 14:51:35 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:54533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmR98-0003lT-JW for emacs-devel@gnu.org; Wed, 14 Oct 2015 14:51:30 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZmR95-0004Ye-1z for emacs-devel@gnu.org; Wed, 14 Oct 2015 20:51:27 +0200 Original-Received: from p54b47b23.dip0.t-ipconnect.de ([84.180.123.35]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Oct 2015 20:51:27 +0200 Original-Received: from Stromeko by p54b47b23.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Oct 2015 20:51:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54b47b23.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:KYTb4G5WEHcwut9ukk1+Zj4biRk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:191586 Archived-At: Eli Zaretskii writes: >> From: Oleh Krehel >> This will be harder to fix, since I've only ever dealt with .tar.gz >> archives (and .zip sometimes). Could someone provide the relative >> extraction commands for .tar.bz2, .tar.xz, and .tar? > > 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: --8<---------------cut here---------------start------------->8--- Compression options: -a, --auto-compress use archive suffix to determine the compression program -I, --use-compress-program=PROG filter through PROG (must accept -d) -j, --bzip2 filter the archive through bzip2 -J, --xz filter the archive through xz --lzip filter the archive through lzip --lzma filter the archive through lzma --lzop filter the archive through xz --no-auto-compress do not use archive suffix to determine the compression program -z, --gzip, --gunzip, --ungzip filter the archive through gzip -Z, --compress, --uncompress filter the archive through compress --8<---------------cut here---------------end--------------->8--- As long as the suffix is recognized by tar, the selection of the uncompress flavor is automatic even without "-a" and you need just "-a" for the creation of archives (which is nice since I never remember if I need -j or -J). But as Paul said, different (and mostly older) tar implementations often do not support those operations or in a different way. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada