* eshell.texi (Built-ins): Describe, how to disable a built-in command
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 26 May 2010 10:13:45 +0000 (12:13 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 26 May 2010 10:13:45 +0000 (12:13 +0200)
by an alias.

doc/misc/ChangeLog
doc/misc/eshell.texi

index 4c857c4..c77e1f1 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-26  Michael Albinus  <michael.albinus@gmx.de>
+
+       * eshell.texi (Built-ins): Describe, how to disable a built-in command
+       by an alias.  (Bug#6226)
+
 2010-05-16  Jay Belanger  <jay.p.belanger@gmail.com>
 
        * calc.texi (Manipulating Vectors): Mention that vectors can
index c32aa65..9682555 100644 (file)
@@ -369,6 +369,17 @@ eshell/ls is a compiled Lisp function in `em-ls.el'
 /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