Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Word split
- X-seq: zsh-users 1127
- From: Bernd Eggink <eggink@xxxxxxxxxxxxxxxxxx>
- To: zsh-users mailing list <zsh-users@xxxxxxxxxxxxxxx>
- Subject: Word split
- Date: Thu, 06 Nov 1997 16:49:58 +0100
- Organization: RRZ Uni Hamburg
- Sender: rz2a022@xxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author