* lisp/eshell/esh-cmd.el (eshell--local-vars): New variable.
authorGlenn Morris <rgm@gnu.org>
Sun, 15 Sep 2013 00:10:45 +0000 (17:10 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 15 Sep 2013 00:10:45 +0000 (17:10 -0700)
commit1e53bb4bf2754c724bcb894e730fd77e25dae80c
tree446081c5b29310e9bf0a798c75b6505b867a5b81
parent0d8863b3b1829f8e53da8dff9ffc2dab60390da6
* lisp/eshell/esh-cmd.el (eshell--local-vars): New variable.
(eshell-rewrite-for-command): Add for loop vars to eshell--local-vars.

* lisp/eshell/esh-var.el (eshell-get-variable): Respect eshell--local-vars.

* test/automated/eshell.el (eshell-test/for-name-shadow-loop):
New test.
(eshell-test/for-loop, eshell-test/for-name-loop): Doc fix.

Fixes: debbugs:15372
lisp/ChangeLog
lisp/eshell/esh-cmd.el
lisp/eshell/esh-var.el
test/ChangeLog
test/automated/eshell.el