+2002-07-06 Richard M. Stallman <rms@gnu.org>
+
+ * simple.el (shell-command): Match & only at end of whole command.
+
2002-07-03 Dave Love <fx@gnu.org>
* ediff-diff.el (ediff-wordify): Bind ediff-forward-word-function
(current-buffer)))))
;; Preserve the match data in case called from a program.
(save-match-data
- (if (string-match "[ \t]*&[ \t]*$" command)
+ (if (string-match "[ \t]*&[ \t]*\\'" command)
;; Command ending with ampersand means asynchronous.
(let ((buffer (get-buffer-create
(or output-buffer "*Async Shell Command*")))