From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66532: 29.1; dired-guess-default command for tar.zst file fails Date: Sat, 14 Oct 2023 09:24:40 +0300 Message-ID: <83zg0lsouv.fsf@gnu.org> References: <87bkd2315h.fsf@posteo.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66532@debbugs.gnu.org To: Michael Eliachevitch Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 08:26:06 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 1qrY69-00042b-QU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 08:26:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrY5k-0008Ky-JB; Sat, 14 Oct 2023 02:25:40 -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 1qrY5j-0008K1-9J for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 02:25: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 1qrY5j-0007PX-07 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 02:25:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrY66-0002vj-3U for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 02:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 06:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66532 X-GNU-PR-Package: emacs Original-Received: via spool by 66532-submit@debbugs.gnu.org id=B66532.169726471311193 (code B ref 66532); Sat, 14 Oct 2023 06:26:02 +0000 Original-Received: (at 66532) by debbugs.gnu.org; 14 Oct 2023 06:25:13 +0000 Original-Received: from localhost ([127.0.0.1]:47693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrY5J-0002uT-CG for submit@debbugs.gnu.org; Sat, 14 Oct 2023 02:25:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrY5G-0002uG-Tg for 66532@debbugs.gnu.org; Sat, 14 Oct 2023 02:25:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrY4n-00077e-T2; Sat, 14 Oct 2023 02:24:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HdM805h2CZusJehWv5KdrzAusStKPPECmNQ6qFyhf70=; b=nLph6m7Um+nn 8kv59PncOwtfR1IVaEAaqMgmmEu3xMvuBycJA3/zFcrK6LYgmMJ2AMMHK+6Y+bNNLpL+YR4sAntA3 1IiqYkDYJd+vniycA4/b0WicADjLfJalx574lqzJtOWJShXnnwCo9UOxEimucne69eYKfB2SDRZZ1 N/7Qigl4hmp83ElfhGV81PCZMG33pA65AFYED+X5qmD+3y/6fTOuZ1O4kB16oaA9u5fV9tOOsHV3x d6w3x1jIXzid+ShsbPze3Fddf27bkl9uBkTjPRifaw/UFLg2BkmK58QzlDXt70Vld7vh0zmO48RQl beAGL6+tFhFW1DnFr+kNTQ==; In-Reply-To: <87bkd2315h.fsf@posteo.de> (message from Michael Eliachevitch on Fri, 13 Oct 2023 11:54:00 +0000) 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:272375 Archived-At: > From: Michael Eliachevitch > 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")