]> code.delx.au - gnu-emacs/blobdiff - doc/misc/eshell.texi
Merge latest fix to xg_event_is_for_menubar.
[gnu-emacs] / doc / misc / eshell.texi
index c32aa659e12b19f1e72019f1c237b39fda4f16e6..6ec431dccfd4bc1c8d3ffe19a06dc547377ce44a 100644 (file)
@@ -8,8 +8,8 @@
 @copying
 This manual is for Eshell, the Emacs shell.
 
-Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004,
-2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+Copyright @copyright{} 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
 @quotation
 Permission is granted to copy, distribute and/or modify this document
@@ -27,7 +27,7 @@ developing GNU and promoting software freedom.''
 
 @dircategory Emacs
 @direntry
-* Eshell: (eshell).     A command shell implemented in Emacs Lisp.
+* Eshell: (eshell).             A command shell implemented in Emacs Lisp.
 @end direntry
 
 @titlepage
@@ -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