Variable: shell-command-regexp

shell-command-regexp is a customizable variable defined in shell.el.gz.

Value

"[^;&|\n]+"

Documentation

Regexp to match a single command within a pipeline.

This is used for directory tracking and does not do a perfect job.

Source Code

;; Defined in /usr/src/emacs/lisp/shell.el.gz
(defcustom 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."
  :type 'regexp
  :group 'shell)