unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15231: 24.3.50; eshell: variable `name' treated different from other variables
@ 2013-08-31 23:40 Gregor Zattler
  2013-09-03  1:27 ` Stefan Monnier
       [not found] ` <mailman.1220.1378171698.10748.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Gregor Zattler @ 2013-08-31 23:40 UTC (permalink / raw)
  To: 15231

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
 





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-12 20:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-31 23:40 bug#15231: 24.3.50; eshell: variable `name' treated different from other variables Gregor Zattler
2013-09-03  1:27 ` Stefan Monnier
     [not found] ` <mailman.1220.1378171698.10748.bug-gnu-emacs@gnu.org>
2013-09-12  1:58   ` Aidan Gauland
2013-09-12  3:39     ` Stefan Monnier
2013-09-12  4:50       ` Stefan Monnier
2013-09-12  6:56         ` Michael Albinus
2013-09-12 20:16           ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).