From: Lars Ingebrigtsen Date: Mon, 29 Aug 2022 15:15:17 +0000 (+0200) Subject: Work around `&' dired command when using the fish shell X-Git-Tag: emacs-29.0.90~1856^2~839 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=46a49b748eaf5553a6eb45215b14baebc090b33b;p=emacs.git 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). --- 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 "&") ""))))