# HG changeset patch # User Michael Albinus # Date 1274868605 -7200 # Node ID 0aab456fe7bdf350de2a8344286a6befffa45ed2 # Parent d38bcb4008ab25b1d74175ddcdbaf66dc468cd97 * eshell.texi (Built-ins): Describe, how to disable a built-in command by an alias. diff -r d38bcb4008ab -r 0aab456fe7bd doc/misc/ChangeLog --- a/doc/misc/ChangeLog Tue May 25 23:48:25 2010 -0700 +++ b/doc/misc/ChangeLog Wed May 26 12:10:05 2010 +0200 @@ -1,3 +1,8 @@ +2010-05-26 Michael Albinus + + * eshell.texi (Built-ins): Describe, how to disable a built-in command + by an alias. + 2010-05-16 Jay Belanger * calc.texi (Manipulating Vectors): Mention that vectors can diff -r d38bcb4008ab -r 0aab456fe7bd doc/misc/eshell.texi --- a/doc/misc/eshell.texi Tue May 25 23:48:25 2010 -0700 +++ b/doc/misc/eshell.texi Wed May 26 12:10:05 2010 +0200 @@ -369,6 +369,17 @@ /bin/ls @end example +If you want to discard a given built-in command, you could declare an +alias, @ref{Aliases}. Eample: + +@example +~ $ which sudo +eshell/sudo is a compiled Lisp function in `em-unix.el' +~ $ alias sudo '*sudo $*' +~ $ which sudo +sudo is an alias, defined as "*sudo $*" +@end example + Some of the built-in commands have a special behaviour in Eshell: @table @code