]> git.eshelyaron.com Git - emacs.git/commitdiff
Use 'eshell-find-alias-function' instead of fboundp
authorRuthra Kumar <ruthrab@gmail.com>
Mon, 16 Nov 2020 22:04:36 +0000 (23:04 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 16 Nov 2020 22:04:36 +0000 (23:04 +0100)
* lisp/eshell/esh-cmd.el (eshell-invoke-directly): Fix problem
with (require 'em-tramp) making password prompting from "sudo
bash" no longer work (bug#43772).

lisp/eshell/esh-cmd.el

index f1cf93368998ff93cd4bdf040ae75a5cc7431ee7..68b34837a23def7796e7bc092f1bc177dea50524 100644 (file)
@@ -918,7 +918,7 @@ at the moment are:
                       (funcall pred name))
                  (throw 'simple nil)))
            t))
-        (fboundp (intern-soft (concat "eshell/" name))))))
+        (eshell-find-alias-function name))))
 
 (defun eshell-eval-command (command &optional input)
   "Evaluate the given COMMAND iteratively."