1265 |
(current-buffer))))) |
(current-buffer))))) |
1266 |
;; Preserve the match data in case called from a program. |
;; Preserve the match data in case called from a program. |
1267 |
(save-match-data |
(save-match-data |
1268 |
(if (string-match "[ \t]*&[ \t]*$" command) |
(if (string-match "[ \t]*&[ \t]*\\'" command) |
1269 |
;; Command ending with ampersand means asynchronous. |
;; Command ending with ampersand means asynchronous. |
1270 |
(let ((buffer (get-buffer-create |
(let ((buffer (get-buffer-create |
1271 |
(or output-buffer "*Async Shell Command*"))) |
(or output-buffer "*Async Shell Command*"))) |