GNU bug report logs -
#15231
24.3.50; eshell: variable `name' treated different from other variables
Previous Next
Reported by: Gregor Zattler <telegraph <at> gmx.net>
Date: Sat, 31 Aug 2013 23:42:01 UTC
Severity: normal
Found in version 24.3.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Dear Emacs developers,
eshell treats a variable named `name' different than a variable
named `foo' (or any(?) other name):
How to reproduce:
emacs -Q -nw -f eshell
#now type
for foo in * { echo "$foo" }
# this lists the directory Emacs was started in
#now type
for name in * { echo "$name" }
# this instead lists as many times 'name' as the above
# for statement listed objects in the directory.
E.g.:
~/src/emacs/doc $ for foo in * { echo "$foo" }
Emacs/
lispintro/
lispref/
man/
misc/
~/src/emacs/doc $ for name in * { echo "$name" }
name
name
name
name
name
~/src/emacs/doc $
This is the case with
GNU Emacs 24.3.50.1 (i486-pc-linux-gnu, X toolkit, Xaw scroll
bars) of 2013-08-31 on dex, modified by Debian
and with
GNU Emacs 23.4.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2013-07-01 on binet, modified by Debian
Is this a bug?
Thanks, Gregor
This bug report was last modified 11 years and 311 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.