diff options
| author | Richard M. Stallman | 1994-09-03 23:05:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-03 23:05:04 +0000 |
| commit | a8e0effbfb643b914fc9e1b5555b9bc21f2c57fd (patch) | |
| tree | 3b1b57d054e1cb3dc4882902aaeeed738c23b31f | |
| parent | 1174421c7d8fa02bcd6d4a4ab28ff2759e609386 (diff) | |
| download | emacs-a8e0effbfb643b914fc9e1b5555b9bc21f2c57fd.tar.gz emacs-a8e0effbfb643b914fc9e1b5555b9bc21f2c57fd.zip | |
(shell-command-regexp): Use a simpler faster regexp.
| -rw-r--r-- | lisp/shell.el | 7 |
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. | |||
| 182 | 182 | ||
| 183 | This is a fine thing to set in your `.emacs' file.") | 183 | This is a fine thing to set in your `.emacs' file.") |
| 184 | 184 | ||
| 185 | (defvar shell-command-regexp "\\((.*)\\|[^;&|]\\)+" | 185 | (defvar shell-command-regexp "[^;&|\n]+" |
| 186 | "*Regexp to match shell commands. | 186 | "*Regexp to match a single command within a pipeline. |
| 187 | Elements of pipes are considered as separate commands, forks and redirections | 187 | This is used for directory tracking and does not do a perfect job.") |
| 188 | as part of one command.") | ||
| 189 | 188 | ||
| 190 | (defvar shell-completion-execonly t | 189 | (defvar shell-completion-execonly t |
| 191 | "*If non-nil, use executable files only for completion candidates. | 190 | "*If non-nil, use executable files only for completion candidates. |