GNU bug report logs - #15372
eshell gives environment variables high precedence

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Fri, 13 Sep 2013 17:41:02 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15372 in the body.
You can then email your comments to 15372 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Fri, 13 Sep 2013 17:41:02 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: submit <at> debbugs.gnu.org
Subject: eshell gives environment variables high precedence
Date: Fri, 13 Sep 2013 13:40:30 -0400
Package: emacs
Version: 24.3

I don't use eshell, so maybe this is how it is supposed to work, but
from the point of view of normal shells, this seems wrong:

foo=FOOBAR emacs -Q -f eshell
eshell> for foo in 5 { echo $foo }
        -> FOOBAR

Cf:

bash> export foo=FOOBAR
bash> for foo in 5; do echo $foo; done
      -> 5




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Fri, 13 Sep 2013 19:06:02 GMT) Full text and rfc822 format available.

Message #6 received at 15372 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15372 <at> debbugs.gnu.org
Subject: Re: bug#15372: eshell gives environment variables high precedence
Date: Fri, 13 Sep 2013 15:05:17 -0400
> I don't use eshell, so maybe this is how it is supposed to work, but
> from the point of view of normal shells, this seems wrong:
> foo=FOOBAR emacs -Q -f eshell
> eshell> for foo in 5 { echo $foo }
> -> FOOBAR

Sorry, I saw this email too late.  Yes, indeed, this should be a bug.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Fri, 13 Sep 2013 19:12:02 GMT) Full text and rfc822 format available.

Message #9 received at 15372 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 15372 <at> debbugs.gnu.org
Subject: Re: bug#15372: eshell gives environment variables high precedence
Date: Fri, 13 Sep 2013 15:11:50 -0400
Stefan Monnier wrote:

> Sorry, I saw this email too late.  Yes, indeed, this should be a bug.

It's like that since at least 22.1; ie this is not related to your changes.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Sat, 14 Sep 2013 23:44:01 GMT) Full text and rfc822 format available.

Message #12 received at 15372 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 15372 <at> debbugs.gnu.org
Subject: Re: bug#15372: eshell gives environment variables high precedence
Date: Sat, 14 Sep 2013 19:43:40 -0400
If you set eshell-prefer-lisp-variables non-nil, it works.




bug marked as fixed in version 24.4, send any further explanations to 15372 <at> debbugs.gnu.org and Glenn Morris <rgm <at> gnu.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 15 Sep 2013 00:12:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Fri, 20 Sep 2013 18:54:01 GMT) Full text and rfc822 format available.

Message #17 received at 15372 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Aidan Gauland <aidalgol <at> no8wireless.co.nz>
Cc: 15372 <at> debbugs.gnu.org
Subject: Re: bug#15372: eshell gives environment variables high precedence
Date: Fri, 20 Sep 2013 14:53:28 -0400
Please don't post to bug-gnu-emacs via the newsgroup (it bypasses the
bug tracker).

Aidan Gauland wrote:

> Glenn Morris <rgm <at> gnu.org> writes:
>
>> If you set eshell-prefer-lisp-variables non-nil, it works.
>
> I will add a mention of this in the manual, since users should not have
> to hunt that variable down as you did.

Actually I believe I fixed the issue. But that variable can be mentioned
anyway, just not in this context.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Sat, 21 Sep 2013 00:42:01 GMT) Full text and rfc822 format available.

Message #20 received at 15372 <at> debbugs.gnu.org (full text, mbox):

From: Aidan Gauland <aidalgol <at> no8wireless.co.nz>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15372 <at> debbugs.gnu.org
Subject: Re: bug#15372: eshell gives environment variables high precedence
Date: Sat, 21 Sep 2013 12:41:43 +1200
Glenn Morris <rgm <at> gnu.org> writes:

> Aidan Gauland wrote:
>
>> Glenn Morris <rgm <at> gnu.org> writes:
>>
>>> If you set eshell-prefer-lisp-variables non-nil, it works.
>>
>> I will add a mention of this in the manual, since users should not have
>> to hunt that variable down as you did.
>
> Actually I believe I fixed the issue. But that variable can be mentioned
> anyway, just not in this context.

So, to clarify, what behaviour did you change/fix?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15372; Package emacs. (Sat, 21 Sep 2013 00:48:01 GMT) Full text and rfc822 format available.

Message #23 received at 15372 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Aidan Gauland <aidalgol <at> no8wireless.co.nz>
Cc: 15372 <at> debbugs.gnu.org
Subject: Re: bug#15372: eshell gives environment variables high precedence
Date: Fri, 20 Sep 2013 20:47:44 -0400
Aidan Gauland wrote:

> So, to clarify, what behaviour did you change/fix?

foo=FOOBAR emacs -Q -f eshell
eshell>
echo $foo                    # -> FOOBAR
for foo in 5 { echo $foo }   # -> 5   [was FOOBAR, a bug]
echo $foo                    # -> FOOBAR




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 19 Oct 2013 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 191 days ago.

Previous Next


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