# HG changeset patch # User Richard M. Stallman # Date 778633504 0 # Node ID 67f6d4905d8cd4326932a0bd398554d6492db250 # Parent a85d4593d45f980f0bfa4fbad432ef1fcb84f352 (shell-command-regexp): Use a simpler faster regexp. diff -r a85d4593d45f -r 67f6d4905d8c lisp/shell.el --- 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.