Ignore current-prefix-arg in async-shell-command

* lisp/simple.el (async-shell-command): Ignore current-prefix-arg and
always pass nil to second argument of `shell-command'.  (Bug#63432)
This commit is contained in:
Gabriel do Nascimento Ribeiro 2023-05-13 20:31:24 -03:00 committed by Eli Zaretskii
parent 1e6a759436
commit b96dc472bc

View file

@ -4490,7 +4490,7 @@ a shell (with its need to quote arguments)."
((eq major-mode 'dired-mode)
(dired-get-filename nil t)))))
(and filename (file-relative-name filename))))
current-prefix-arg
nil
shell-command-default-error-buffer))
(unless (string-match "&[ \t]*\\'" command)
(setq command (concat command " &")))