summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/regexp-opt.el
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2024-01-24 18:32:00 -0800
committerJim Porter <jporterbugs@gmail.com>2024-01-27 12:22:57 -0800
commit3c680968e492acf8891fda22c28baef5078ca768 (patch)
tree6a7c18066b5c2c70b1b1ed67003e979145565223 /lisp/emacs-lisp/regexp-opt.el
parentaa386cd92f403b2441d09e06743c78d6f2c8a7f5 (diff)
downloademacs-3c680968e492acf8891fda22c28baef5078ca768.tar.gz
emacs-3c680968e492acf8891fda22c28baef5078ca768.tar.bz2
emacs-3c680968e492acf8891fda22c28baef5078ca768.zip
Fix command replacement with the Eshell builtin versions of "sudo" and "doas"
This is particularly important when the inner command to execute is an alias. Aliases throw 'eshell-replace-command' too, so we want to do this in two phases: first, replace the "sudo"/"doas" with a let-binding of 'default-directory', and then later, let the alias code do its own replacement (bug#68074). * lisp/eshell/em-tramp.el (eshell/sudo, eshell/doas): Use 'eshell-replace-command' to wrap the inner command. * test/lisp/eshell/em-tramp-tests.el (mock-eshell-named-command): Remove. (em-tramp-test/sudo-basic, em-tramp-test/sudo-user) (em-tramp-test/doas-basic, em-tramp-test/doas-user): Catch 'eshell-replace-command'.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions