GNU bug report logs - #62452
30.0.50; [PATCH] Avoid shadowing variables in some Eshell command forms

Previous Next

Package: emacs;

Reported by: Jim Porter <jporterbugs <at> gmail.com>

Date: Sun, 26 Mar 2023 04:49:01 UTC

Severity: normal

Tags: patch

Found in version 30.0.50

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Porter <jporterbugs <at> gmail.com>
To: 62452 <at> debbugs.gnu.org
Subject: bug#62452: 30.0.50; [PATCH] Avoid shadowing variables in some Eshell command forms
Date: Sat, 25 Mar 2023 21:48:13 -0700
[Message part 1 (text/plain, inline)]
To see this in action, start from "emacs -Q -f eshell", then:

  ~ $ setq value "hi there"
  hi there
  ~ $ echo $value
  hi there
  ~ $ echo ${echo $value}
  eshell-temp

The last command should *also* print "hi there", but the variable 
'value' gets shadowed by some internal Eshell code. (A similar problem 
occurs for 'for-items' when using a for loop in Eshell.)

Patch attached.
[0001-Avoid-shadowing-variables-in-some-Eshell-command-for.patch (text/plain, attachment)]

This bug report was last modified 2 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.