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 15:47:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> 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.



reply via email to

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