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

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

bug#66532: 29.1; dired-guess-default command for tar.zst file fails


From: Eli Zaretskii
Subject: bug#66532: 29.1; dired-guess-default command for tar.zst file fails
Date: Sat, 14 Oct 2023 09:24:40 +0300

> From: Michael Eliachevitch <m.eliachevitch@posteo.de>
> Date: Fri, 13 Oct 2023 11:54:00 +0000
> 
> I tried to extract the attached zstandard-compressed tar archive
> `testdir.tar.zst' using the dired-guess-default suggested shell command,
> which is
> 
>     unzstd -c %i | tar -xf -
> 
> It fails with the message
> 
>     zstd: can't stat %i : No such file or directory -- ignored
>     tar: This does not look like a tar archive
>     tar: testdir.tar.zst: Not found in archive

Does the patch below fix this?

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index fc3f6f4..458acad 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1172,7 +1172,7 @@ dired-guess-shell-alist-default
          "unxz")
 
    ;; zstandard archives
-   `(,(rx (or ".tar.zst" ".tzst") eos) "unzstd -c %i | tar -xf -")
+   `(,(rx (or ".tar.zst" ".tzst") eos) "unzstd -c * | tar -xf -")
    `(,(rx ".zst" eos)                  "unzstd --rm")
 
    '("\\.shar\\.Z\\'" "zcat * | unshar")





reply via email to

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