Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Using array subscript flags with @ and *
- X-seq: zsh-workers 1426
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Using array subscript flags with @ and *
- Date: Sat, 22 Jun 1996 15:43:37 -0700
- Reply-to: schaefer@xxxxxxx
Seems to me that this *should* work, though it doesn't:
zsh% : "$foo[(f)@]"
zsh: bad math expression: unbalanced stack
What I want to do is treat the string value of foo as an array of lines,
and quote each line as a separate "word". There's no other subscripting
construction that duplicates this effect; $foo[(f)1,(f)-1] is equivalent
to $foo[*], not $foo[@].
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author