From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Eliachevitch Newsgroups: gmane.emacs.bugs Subject: bug#66532: 29.1; dired-guess-default command for tar.zst file fails Date: Fri, 13 Oct 2023 11:54:00 +0000 Message-ID: <87bkd2315h.fsf@posteo.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8868"; mail-complaints-to="usenet@ciao.gmane.io" To: 66532@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 13 19:04:58 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrLar-000200-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Oct 2023 19:04:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrLab-0002hV-RL; Fri, 13 Oct 2023 13:04:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrLaZ-0002aa-6I for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 13:04:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrLaY-0003wY-Uj for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 13:04:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrLav-0006yd-Qh for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 13:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Eliachevitch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2023 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66532 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169721666226754 (code B ref -1); Fri, 13 Oct 2023 17:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2023 17:04:22 +0000 Original-Received: from localhost ([127.0.0.1]:47338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrLaG-0006xQ-IA for submit@debbugs.gnu.org; Fri, 13 Oct 2023 13:04:21 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:38738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrLaA-0006x5-HY for submit@debbugs.gnu.org; Fri, 13 Oct 2023 13:04:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrLZg-0008WO-Re for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 13:03:44 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrLZe-0003nU-KG for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2023 13:03:44 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A89F9240027 for ; Fri, 13 Oct 2023 19:03:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1697216619; bh=35yPco13isLyPVMIfmklULF1IKS26EiajhnfKKPEEKc=; h=From:To:Subject:Date:Message-ID:MIME-Version:From; b=qgdnwJ/QJFQs7HXJ5Mfa+R2z4C/wUEwP4/hn2Gk4F2dZT9u572IIxOHG1tFKFNpLI tqUiS1BMGTH+jCOGZ47qGJ5OpSMzpk/Cki9Uj/hMD2mpLSzGtQoJCAF0HakamdO5aD MuVMfHZZxwmaG4lAe8YtwA9SExz1vg/u376l2JcKVzTZ10ago7n4Ql28FCa5cQVnzS O6+t4/fEu9/J9kzhrzl7Eaiz/4DlMbDXUJv3E7Adof3kPzwl1b0gT7J5iwyTwmtHAI hL4wY07xeor45GuAaL+6002BSW/vYhaMbum8H8J7cj49LFjjO4qkVJM6lqpePW9gc/ UaweBHSkhvhUw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S6Xs71fhPz9rxQ; Fri, 13 Oct 2023 19:03:39 +0200 (CEST) Received-SPF: pass client-ip=185.67.36.65; envelope-from=m.eliachevitch@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272360 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; format=flowed 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 What instead works is using the command tar --use-compress-program=unzstd -xvf My GNU tar version also is able to automatically detect zstandard files, so basically just "tar -xvf" is suffisient, but the version with "--use-compress-program=unzstd" is backwards-compatible to older tar versions. I suggest fixing that in `dired-guess-shell-alist-default'. Though there might be tar versions out there which don't support `--use-compress-program' (I don't know), then maybe a piping solution might be better, but that should be done in a way that avoid the above error (not sure what actually causes it). I use GNU tar version 1.35 and unzstd version v1.5.5. --- In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) System Description: Arch Linux Configured using: 'configure --with-pgtk --with-native-compilation=aot --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib --with-tree-sitter --localstatedir=/var --with-cairo --disable-build-details --with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto' 'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LC_COLLATE: C.UTF-8 value of $LC_CTYPE: en_GB.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: C value of $XMODIFIERS: \@im=fcitx locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils shell pcomplete comint ansi-osc ansi-color ring dired-aux cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib dired dired-loaddefs rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 88176 12534) (symbols 48 7814 1) (strings 32 22832 2092) (string-bytes 1 699474) (vectors 16 17190) (vector-slots 8 350551 18772) (floats 8 30 40) (intervals 56 440 0) (buffers 984 15)) --=-=-= Content-Type: application/zstd Content-Disposition: attachment; filename=testdir.tar.zst Content-Transfer-Encoding: base64 KLUv/QRYPQMAEoUQFbAlbdIVArZsJfuS4hCJ7N6yJAuVAidfHhGHEkawR9eElgHAEExUlD0FJ/ns rO4zHGZWieUnqf/OJP/voTCBPboBDAD9A/AADKgGYI4CkwcIImiAgqFwAIArAKnBC6xwFScgBwA7 +Hk= --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCAA3FiEEVGkIx4I4OtDn2JTsG4+VyBJdzjEFAmUpeGoZHG0uZWxpYWNo ZXZpdGNoQHBvc3Rlby5kZQAKCRAbj5XIEl3OMZMsB/9uad2HLH/tIVtWVDS1Gyr8 7YV5lTXErTIyQfJ5EDTr7wIMWHt++e3ufuJld6MlpYY9mA/ez4kKsyVvGbZUm1bS +raJg/REvdrY6AejTTwnI8q9CL0aeXNq4MkxDKHgS9pa3i90GjVT5HmVuvaqJWbd dFjN6dt5IbVcvEd2VCIXysnm5Cdp64bW7m1S5az5kjCV9Nm5m/oYkEKf0fZBhGpL KDQkOOoNIqfD++JhelKpXwxAOMAOzEW2en59qIBool++WEylIhHF4oWyRuNBaQsn 4iEgz9minB+5kTP2m1t4vMSEaxiSCRJQ4SeES+sHTMwrK71/f3DPEA0D0eNSGlVM =hWtx -----END PGP SIGNATURE----- --==-=-=--