* Re: bug in select
@ 1996-12-30 3:37 Wolfgang Hukriede
0 siblings, 0 replies; only message in thread
From: Wolfgang Hukriede @ 1996-12-30 3:37 UTC (permalink / raw)
To: zsh-users
>> verdy% select i in aaa bbb ccc
>> do echo $i
>> done
>> 1) aaa 2) bbb 3) ccc
>> ?# 1
>> 0
Zoltan wrote:
>Ksh behaves exactly the same way. This is not a bug. Add unset i before
>select and it'll work. Note that i becomes integer if it is initialised
>first in an arithmetic expression, like let i=0 or $((i=0)).
Yes, and in the same spirit:
zsh> i="something"; echo $i
0
etc. (If the variable is by any accident integer.) That's hazard. The shell
should print out a message, imo. These are type errors.
Wolfgang.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-12-30 4:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-12-30 3:37 bug in select Wolfgang Hukriede
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).