diff options
Diffstat (limited to 'lisp/eshell/esh-cmd.el')
-rw-r--r-- | lisp/eshell/esh-cmd.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index 850cecbc0a5..872d1cdd53e 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el @@ -1220,9 +1220,7 @@ COMMAND may result in an alias being executed, or a plain command." (if (and file (string-match "\\(em\\|esh\\)-\\(.*\\)\\(\\.el\\)?\\'" file)) (let ((module-sym - (intern (file-name-sans-extension - (file-name-nondirectory - (concat "eshell-" (match-string 2 file))))))) + (intern (file-name-base (concat "eshell-" (match-string 2 file)))))) (if (and (functionp sym) (or (null module-sym) (eshell-using-module module-sym) |