]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-explicit-command-char): A new configuration variable, which
authorJohn Wiegley <johnw@newartisans.com>
Fri, 18 May 2001 16:40:11 +0000 (16:40 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 18 May 2001 16:40:11 +0000 (16:40 +0000)
determines the initial character that forces use of an external
version of a command.  The default is *, but may be set to \, for
example.
(eshell-explicit-command): Use `eshell-explicit-command-char' instead
of ?*.

lisp/eshell/esh-ext.el

index 25abb687a1279dcce2a0938dc4a74f907097173a..52ca3392a2c5b2e82f4b664b2cdf494e2f28bbc8 100644 (file)
@@ -150,6 +150,13 @@ by the user on the command line."
   :type 'integer
   :group 'eshell-ext)
 
+(defcustom eshell-explicit-command-char ?*
+  "*If this char occurs before a command name, call it externally.
+That is, although vi may be an alias, *vi will always call the
+external version.  UNIX users may prefer this variable to be \."
+  :type 'character
+  :group 'eshell-ext)
+
 ;;; Functions:
 
 (defun eshell-ext-initialize ()
@@ -161,7 +168,7 @@ by the user on the command line."
   "If a command name begins with `*', call it externally always.
 This bypasses all Lisp functions and aliases."
   (when (and (> (length command) 1)
-            (eq (aref command 0) ?*))
+            (eq (aref command 0) eshell-explicit-command-char))
     (let ((cmd (eshell-search-path (substring command 1))))
       (if cmd
          (or (eshell-external-command cmd args)