Merge from emacs--devo--0
[bpt/emacs.git] / lisp / eshell / esh-opt.el
index 41e12e7..94b0e34 100644 (file)
@@ -195,7 +195,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))))))))