]> git.eshelyaron.com Git - emacs.git/commitdiff
(shell-command-regexp): Use a simpler faster regexp.
authorRichard M. Stallman <rms@gnu.org>
Sat, 3 Sep 1994 23:05:04 +0000 (23:05 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 3 Sep 1994 23:05:04 +0000 (23:05 +0000)
lisp/shell.el

index e5e023a52c3d646584df2cad01e88f55efa38c28..3a5026343127e8b333ce851d403e87ce5cedc9a9 100644 (file)
@@ -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.