summaryrefslogtreecommitdiff
path: root/lisp/shell.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-10 08:35:48 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-10 08:35:48 +0000
commit8921525e34ede9e01247bf457276ae58a986a84c (patch)
tree5ad6e709a1a311f9b11b9ddf6417a655a8a4e400 /lisp/shell.el
parent6f482eec7710df1a99f252f479cf11dd4cde889e (diff)
downloademacs-8921525e34ede9e01247bf457276ae58a986a84c.tar.gz
(shell-get-current-command): Make regexp more selective.
Diffstat (limited to 'lisp/shell.el')
-rw-r--r--lisp/shell.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 05179863d94..a759aedc8ea 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -625,7 +625,7 @@ See `shell-command-regexp'."
(defun shell-get-current-command ()
"Function that returns the current command including arguments."
(save-excursion
- (if (looking-at "\\s *[^;&|]")
+ (if (looking-at "[\t ]*[^;&|\n]")
(goto-char (match-end 0)))
(buffer-substring
(progn (shell-backward-command 1) (point))