emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files


From: Oleh Krehel
Subject: Re: master 6d6bf46 2/2: Make dired-do-compress work for *.tar.gz files
Date: Fri, 16 Oct 2015 12:44:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Glenn Morris <address@hidden>
>> Date: Thu, 15 Oct 2015 12:48:11 -0400
>> Cc: address@hidden
>> 
>> Personally I'd just go with:
>> 
>>   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

And this for decompression:

    gzip -dc example.tar.gz | tar -x

I think it would be productive if everyone just wrote down the explicit
shell command they want with all the relevant switches.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]