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 d15f2d4 commit e1deafdCopy full SHA for e1deafd
lisp/simple.el
@@ -3640,10 +3640,11 @@ impose the use of a shell (with its need to quote arguments)."
3640
(if handler
3641
(funcall handler 'shell-command command output-buffer error-buffer)
3642
(if (and output-buffer
3643
+ (not (string-match "[ \t]*&[ \t]*\\'" command))
3644
(or (eq output-buffer (current-buffer))
3645
(and (stringp output-buffer) (eq (get-buffer output-buffer) (current-buffer)))
3646
(not (or (bufferp output-buffer) (stringp output-buffer))))) ; Bug#39067
- ;; Output goes in current buffer.
3647
+ ;; Synchronous command with output in current buffer.
3648
(let ((error-file
3649
(and error-buffer
3650
(make-temp-file
0 commit comments