From 46a49b748eaf5553a6eb45215b14baebc090b33b Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 29 Aug 2022 17:15:17 +0200 Subject: [PATCH] Work around `&' dired command when using the fish shell * lisp/dired-aux.el (dired-shell-stuff-it): Add a space before &wait; this apparently makes the `&' command work with the fish shell (bug#57472). --- lisp/dired-aux.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 06f0b86fc43..0e8062af528 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -987,7 +987,7 @@ Also see the `dired-confirm-shell-command' variable." ;; Add 'wait' to force those POSIX shells to wait until ;; all commands finish. (or (and parallel-in-background (not w32-shell) - "&wait") + " &wait") ""))) (t (let ((files (mapconcat #'shell-quote-argument @@ -999,7 +999,7 @@ Also see the `dired-confirm-shell-command' variable." ;; Be consistent in how we treat inputs to commands -- do ;; the same here as in the `on-each' case. (if (and in-background (not w32-shell)) - "&wait" + " &wait" ""))))) (or (and in-background "&") "")))) -- 2.39.5