zsh-users
 help / color / mirror / code / Atom feed
* Word split
@ 1997-11-06 15:49 Bernd Eggink
  1997-11-06 17:44 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Eggink @ 1997-11-06 15:49 UTC (permalink / raw)
  To: zsh-users mailing list

Hi,

I have a problem with word splitting in 3.1.2:

	x='a::b'
	y=(${(s(:)x})

I wanted $y to hold 3 elements, with an empty $y[2], but the result is
an array with 2 elements, 'a' and 'b'. This would be OK if at least 

	y=("${(@s(:)x}")

gave 3 elements, but it doesn't either. This is inconsistent with the
behaviour of

	setopt shwordsplit; IFS=:; y=($x) 

which results in an array of length 3.

Any comments?

	Bernd

--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@rrz.uni-hamburg.de
http://www.rrz.uni-hamburg.de/eggink/BEggink.html


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

end of thread, other threads:[~1997-11-06 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-06 15:49 Word split Bernd Eggink
1997-11-06 17:44 ` 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).