zsh-workers
 help / color / mirror / code / Atom feed
* ${=variable} doesn't always produce an array -- why?
@ 1998-06-09 19:41 Bart Schaefer
  1998-06-09 20:11 ` Zefram
  0 siblings, 1 reply; 3+ messages in thread
From: Bart Schaefer @ 1998-06-09 19:41 UTC (permalink / raw)
  To: zsh-workers

Is there any way to cause a scalar to be interpreted as an array regardless
of the number of words it contains?  Consider:

zsh% one="one"
zsh% two="one two"
zsh %echo ${${=one}[1]} ${${=two}[1]}
o one

This seems unintuitive to me.  I was expecting to get the entire word "one"
in both cases.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


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

end of thread, other threads:[~1998-06-10  6:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-09 19:41 ${=variable} doesn't always produce an array -- why? Bart Schaefer
1998-06-09 20:11 ` Zefram
1998-06-10  6:40   ` Bart Schaefer

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).