(eshell-process-option): Use characterp.
authorDave Love <fx@gnu.org>
Wed, 10 Sep 2003 17:52:03 +0000 (17:52 +0000)
committerDave Love <fx@gnu.org>
Wed, 10 Sep 2003 17:52:03 +0000 (17:52 +0000)
lisp/eshell/esh-opt.el

index 6807e1a..2187d61 100644 (file)
@@ -194,7 +194,7 @@ switch is unrecognized."
          (setq extcmd (eshell-search-path (cadr extcmd)))
          (if extcmd
              (throw 'eshell-ext-command extcmd)
-           (if (char-valid-p switch)
+           (if (characterp switch)
                (error "%s: unrecognized option -%c" name switch)
              (error "%s: unrecognized option --%s" name switch))))))))