From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files Date: Fri, 16 Oct 2015 15:47:03 +0200 Message-ID: <87wpunsz6w.fsf@gmail.com> References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83bnc083k3.fsf@gnu.org> <871tcvks7o.fsf@gmail.com> <83si5b54m9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1445003356 32391 80.91.229.3 (16 Oct 2015 13:49:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 13:49:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 16 15:49:09 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 1Zn5Na-0006bZ-9f for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 15:49:06 +0200 Original-Received: from localhost ([::1]:53762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn5NZ-0002DD-FU for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 09:49:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn5LY-0008PG-KO for emacs-devel@gnu.org; Fri, 16 Oct 2015 09:47:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn5LV-00030G-7u for emacs-devel@gnu.org; Fri, 16 Oct 2015 09:47:00 -0400 Original-Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:34608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn5LV-0002zv-27; Fri, 16 Oct 2015 09:46:57 -0400 Original-Received: by wicgb1 with SMTP id gb1so10415308wic.1; Fri, 16 Oct 2015 06:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=eWPuBh7Z+HZg9jIlCYssVKIj1QYMkWtXvL0oyrppEd4=; b=GpyUjkP73MNTTj1DksZgUTHign+bOXXh/KAKnzEaU7G4/yObd4cB1zV+ilxioCJPV/ lz7Q8WPh6o3Mhfrhl5OJiHOMxvY4j9v5gkLz+v3WohhLTjHGa2NKtpYzdOJYZQcY7rHt tBXhg1pZzbu4Ul6v0oTGRfMiVzQi2njOIFlFLbz4JXLrr57Fh/n6bhgNqOhRmtwkijMf 6Wqtlte4HhooWN38eack58HKnHyT6ir1bCeh8lMYmelruy0dZ8qFSouCB3AxVSARpIT8 r0GfHczf4P5gT9Z0aQ2Yk8+1prBWYztftJx/vxWOPE9l9NwJXfvp34czMAXimvzIHX4f fzVA== X-Received: by 10.180.106.37 with SMTP id gr5mr4964150wib.86.1445003214851; Fri, 16 Oct 2015 06:46:54 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id pb4sm22663075wjb.8.2015.10.16.06.46.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 16 Oct 2015 06:46:53 -0700 (PDT) In-Reply-To: <83si5b54m9.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 16 Oct 2015 16:23:42 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::235 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:191755 Archived-At: Eli Zaretskii writes: >> OK, is this what you want for compression: >> >> tar -c example/ | gzip -c9 > example.tar.gz > > Yes. OK, I propose the following entry in `dired-compress-file-suffixes' to be used when "Z" is pressed on a directory: (t ".tar.gz" "tar -c %i | gzip -c9 > %o") >> And this for decompression: >> >> gzip -dc example.tar.gz | tar -x > > Yes (except that you could use gunzip.) So: gunzip -dc example.tar.gz | tar -x and the corresponding entry in `dired-compress-file-suffixes': ("\\.tar\\.gz\\'" "" "gunzip -dc %i | tar -xv") Also, what is the difference between gzip and gunzip? Both seem to work the same in this case. >> I think it would be productive if everyone just wrote down the explicit >> shell command they want with all the relevant switches. > > I don't understand: who are those "everyone" that you want to write > the commands? Well, Paul has a weird tar that doesn't understand "-z", so I wonder what exact command he uses for *.tar.gz.