We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f58054 commit 72011f2Copy full SHA for 72011f2
lisp/simple.el
@@ -3646,10 +3646,11 @@ impose the use of a shell (with its need to quote arguments)."
3646
(if handler
3647
(funcall handler 'shell-command command output-buffer error-buffer)
3648
(if (and output-buffer
3649
+ (not (string-match "[ \t]*&[ \t]*\\'" command))
3650
(or (eq output-buffer (current-buffer))
3651
(and (stringp output-buffer) (eq (get-buffer output-buffer) (current-buffer)))
3652
(not (or (bufferp output-buffer) (stringp output-buffer))))) ; Bug#39067
- ;; Output goes in current buffer.
3653
+ ;; Synchronous command with output in current buffer.
3654
(let ((error-file
3655
(and error-buffer
3656
(make-temp-file
0 commit comments