summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-09-03 23:05:04 +0000
committerRichard M. Stallman <rms@gnu.org>1994-09-03 23:05:04 +0000
commit77b7c9853a4885fd3ca63541951ed64bf265df08 (patch)
treede5aaf04ebe27b4d47236f76a5525989728cbcd6 /lisp
parent7aa0c6d3516060972183199a9eeb9e6e6117b1be (diff)
downloademacs-77b7c9853a4885fd3ca63541951ed64bf265df08.tar.gz
(shell-command-regexp): Use a simpler faster regexp.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/shell.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index e5e023a52c3..3a502634312 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -182,10 +182,9 @@ shell buffer.
This is a fine thing to set in your `.emacs' file.")
-(defvar shell-command-regexp "\\((.*)\\|[^;&|]\\)+"
- "*Regexp to match shell commands.
-Elements of pipes are considered as separate commands, forks and redirections
-as part of one command.")
+(defvar shell-command-regexp "[^;&|\n]+"
+ "*Regexp to match a single command within a pipeline.
+This is used for directory tracking and does not do a perfect job.")
(defvar shell-completion-execonly t
"*If non-nil, use executable files only for completion candidates.