]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around `&' dired command when using the fish shell
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Aug 2022 15:15:17 +0000 (17:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 29 Aug 2022 15:15:17 +0000 (17:15 +0200)
* 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

index 06f0b86fc43fd59f9e662b4c28c9c11410b08de9..0e8062af528cbe8a37b6c17b7fdb644a37a2f7f8 100644 (file)
@@ -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 "&")
          ""))))