Variable: eshell-rewrite-command-hook
eshell-rewrite-command-hook is a customizable variable defined in
esh-cmd.el.gz.
Value
(eshell-rewrite-for-command
eshell-rewrite-while-command
eshell-rewrite-if-command
eshell-rewrite-sexp-command
eshell-rewrite-initial-subcommand
eshell-rewrite-named-command)
Documentation
A set of functions used to rewrite the command argument.
Once parsing of a command line is completed, the next step is to rewrite the initial argument into something runnable.
A module may wish to associate special behavior with certain argument syntaxes at the beginning of a command line. They are welcome to do so by adding a function to this hook. The first function to return a substitute command form is the one used. Each function is passed the command's full argument list, which is a list of sexps (typically forms or strings).
Source Code
;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defcustom eshell-rewrite-command-hook
'(eshell-rewrite-for-command
eshell-rewrite-while-command
eshell-rewrite-if-command
eshell-rewrite-sexp-command
eshell-rewrite-initial-subcommand
eshell-rewrite-named-command)
"A set of functions used to rewrite the command argument.
Once parsing of a command line is completed, the next step is to
rewrite the initial argument into something runnable.
A module may wish to associate special behavior with certain argument
syntaxes at the beginning of a command line. They are welcome to do
so by adding a function to this hook. The first function to return a
substitute command form is the one used. Each function is passed the
command's full argument list, which is a list of sexps (typically
forms or strings)."
:type 'hook)