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: Fri, 16 Oct 2015 16:23:42 +0300 Message-ID: <83si5b54m9.fsf@gnu.org> References: <20151013135354.28594.43074@vcs.savannah.gnu.org> <87io69opbs.fsf@gmail.com> <83bnc083k3.fsf@gnu.org> <871tcvks7o.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445001854 6511 80.91.229.3 (16 Oct 2015 13:24:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Oct 2015 13:24:14 +0000 (UTC) Cc: rgm@gnu.org, emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 16 15:24:05 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 1Zn4zM-0007GC-2Z for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 15:24:04 +0200 Original-Received: from localhost ([::1]:53625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4zL-0003gn-Br for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 09:24:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4z4-0003gM-AV for emacs-devel@gnu.org; Fri, 16 Oct 2015 09:23:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zn4z0-0000Ww-Cl for emacs-devel@gnu.org; Fri, 16 Oct 2015 09:23:46 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:43445) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zn4z0-0000Wp-59; Fri, 16 Oct 2015 09:23:42 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NWB00G00EHG0T00@a-mtaout21.012.net.il>; Fri, 16 Oct 2015 16:23:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWB00FMAEJGT720@a-mtaout21.012.net.il>; Fri, 16 Oct 2015 16:23:41 +0300 (IDT) In-reply-to: <871tcvks7o.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:191753 Archived-At: > From: Oleh Krehel > Cc: Glenn Morris , emacs-devel@gnu.org > Date: Fri, 16 Oct 2015 12:44:59 +0200 > > Eli Zaretskii writes: > > >> uncompress-prog | tar > > > > (You mean "compress-prog", I think. This is about compressing.) > > > > I agree. > > > >> and simply assume that "uncompress-prog" is present (like the command > >> does now, I guess). > > > > Yes, and it's not a separate assumption: Tar runs that program as well > > to uncompress the tarball, so if that program is missing, "tar -caf" > > won't work as well. > > OK, is this what you want for compression: > > tar -c example/ | gzip -c9 > example.tar.gz Yes. > And this for decompression: > > gzip -dc example.tar.gz | tar -x Yes (except that you could use gunzip.) > 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?