]> git.eshelyaron.com Git - emacs.git/commit
Allow Eshell variable aliases to point to other aliases
authorJim Porter <jporterbugs@gmail.com>
Sat, 9 Jul 2022 01:41:07 +0000 (18:41 -0700)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 12 Jul 2022 13:10:56 +0000 (15:10 +0200)
commitba1923f1f1bba69bc13620042a00e315946ba82a
treed85dddc36fb0957a0209fa15bbf1b7dcef339191
parente51ae63ec28c46f37436f649d6421859c1ad0077
Allow Eshell variable aliases to point to other aliases

In particular, this resolves an issue where '$+' referenced the real
environment variable '$PWD' instead of the Eshell variable alias of
the same name.  This meant that changing directories in Eshell
wouldn't update the value of '$+'.

* lisp/eshell/esh-var.el (eshell-get-variable): Allow Eshell variable
aliaes to point to other aliases.

* test/lisp/eshell/em-dirs-tests.el (em-dirs-test/pwd-var)
(em-dirs-test/short-pwd-var): Adapt tests to check this case
(bug#56509).
lisp/eshell/esh-var.el
test/lisp/eshell/em-dirs-tests.el