changeset 8694:67f6d4905d8c

(shell-command-regexp): Use a simpler faster regexp.
author Richard M. Stallman <rms@gnu.org>
date Sat, 03 Sep 1994 23:05:04 +0000
parents a85d4593d45f
children 0f702e9ab06d
files lisp/shell.el
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/shell.el	Sat Sep 03 22:46:05 1994 +0000
+++ b/lisp/shell.el	Sat Sep 03 23:05:04 1994 +0000
@@ -182,10 +182,9 @@
 
 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.