help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [works on the comman line]


From: Emanuel Berg
Subject: Re: [works on the comman line]
Date: Sat, 26 Feb 2022 01:47:21 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Uwe Brauer wrote:

>> (defun dired-zip-files ()
>>   (interactive)
>>     (dolist (f (dired-get-marked-files))
>>       (start-process "zip" nil "zip" "-9" "--junk-path" (concat f ".zip") f)
>>       (revert-buffer) ))
>
> 1. If I open the zip file generated by your method via unzip
>    on the command like, it just returns that file without
>    any additional directory.

What additional directory are you talking about?

> 2. If I use however dired-do-compress then an additional
>    directory is created.

But `dired-do-compress' creates .gz files (or a .tar.gz for
a directory) so that's another command from the get-go and to
unzip it one cannot even use unzip(1).

Still ... I use 'gunzip -fk' for .gz (and 'tar xfz' .tar.gz)
and I just tried it, it works as expected and there is no
"additional directory" ...

https://dataswamp.org/~incal/conf/.zsh/zip

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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