Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Using file lines as "input files"



On Sat, Jul 9, 2022 at 5:42 PM Dominik Vogt <dominik.vogt@xxxxxx> wrote:
>
>   $ foo[9]=''
>   $ setopt shwordsplit
>   $ echo x^foo
>   x x

Er, missing a $ there?

Anyway ...

% foo[9]=z
Macadamia% print -l x${^=foo}y
xy
xzy

The leading "nonexistent" elements become one word, and the remaining
element with a value becomes another.  I'm not sure why that happens.




Messages sorted by: Reverse Date, Date, Thread, Author