mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
eshell.texi improvements
* doc/misc/eshell.texi (Built-ins): eshell/sudo is a compiled Lisp function in `em-tramp.el'. Mention also $*, $1, $2, ... (Aliases): Add $*, $1, $2, ... to the variable index.
This commit is contained in:
parent
7abb5c3960
commit
1ba3471b9b
@ -239,7 +239,6 @@ especially for file names with special characters like pipe
|
|||||||
(@code{|}), which could be part of remote file names.
|
(@code{|}), which could be part of remote file names.
|
||||||
|
|
||||||
@node Built-ins
|
@node Built-ins
|
||||||
|
|
||||||
@section Built-in commands
|
@section Built-in commands
|
||||||
Several commands are built-in in Eshell. In order to call the
|
Several commands are built-in in Eshell. In order to call the
|
||||||
external variant of a built-in command @code{foo}, you could call
|
external variant of a built-in command @code{foo}, you could call
|
||||||
@ -258,7 +257,7 @@ alias, @ref{Aliases}. Example:
|
|||||||
|
|
||||||
@example
|
@example
|
||||||
~ $ which sudo
|
~ $ which sudo
|
||||||
eshell/sudo is a compiled Lisp function in `em-unix.el'
|
eshell/sudo is a compiled Lisp function in `em-tramp.el'.
|
||||||
~ $ alias sudo '*sudo $*'
|
~ $ alias sudo '*sudo $*'
|
||||||
~ $ which sudo
|
~ $ which sudo
|
||||||
sudo is an alias, defined as "*sudo $*"
|
sudo is an alias, defined as "*sudo $*"
|
||||||
@ -419,6 +418,9 @@ Lisp functions, based on successful completion).
|
|||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@ref{Aliases} for the built-in variables @samp{$*}, @samp{$1},
|
||||||
|
@samp{$2}, @dots{}, in alias definitions.
|
||||||
|
|
||||||
@node Variables
|
@node Variables
|
||||||
@section Variables
|
@section Variables
|
||||||
Since Eshell is just an Emacs REPL@footnote{Read-Eval-Print Loop}, it
|
Since Eshell is just an Emacs REPL@footnote{Read-Eval-Print Loop}, it
|
||||||
@ -429,6 +431,7 @@ would in an Elisp program. Eshell provides a command version of
|
|||||||
@node Aliases
|
@node Aliases
|
||||||
@section Aliases
|
@section Aliases
|
||||||
|
|
||||||
|
@vindex $*
|
||||||
Aliases are commands that expand to a longer input line. For example,
|
Aliases are commands that expand to a longer input line. For example,
|
||||||
@command{ll} is a common alias for @code{ls -l}, and would be defined
|
@command{ll} is a common alias for @code{ls -l}, and would be defined
|
||||||
with the command invocation @kbd{alias ll 'ls -l $*'}; with this defined,
|
with the command invocation @kbd{alias ll 'ls -l $*'}; with this defined,
|
||||||
@ -438,6 +441,7 @@ automatically written to the file named by @code{eshell-aliases-file},
|
|||||||
which you can also edit directly (although you will have to manually
|
which you can also edit directly (although you will have to manually
|
||||||
reload it).
|
reload it).
|
||||||
|
|
||||||
|
@vindex $1, $2, @dots{}
|
||||||
Note that unlike aliases in Bash, arguments must be handled
|
Note that unlike aliases in Bash, arguments must be handled
|
||||||
explicitly. Typically the alias definition would end in @samp{$*} to
|
explicitly. Typically the alias definition would end in @samp{$*} to
|
||||||
pass all arguments along. More selective use of arguments via
|
pass all arguments along. More selective use of arguments via
|
||||||
|
Loading…
Reference in New Issue
Block a user