From: Richard M. Stallman Date: Sat, 3 Sep 1994 23:05:04 +0000 (+0000) Subject: (shell-command-regexp): Use a simpler faster regexp. X-Git-Tag: emacs-19.34~7160 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8e0effbfb643b914fc9e1b5555b9bc21f2c57fd;p=emacs.git (shell-command-regexp): Use a simpler faster regexp. --- 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.