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

Re: Printing empty array elements



On 10/31/18, Jesper Nygårds <jesper.nygards@xxxxxxxxx> wrote:
> Aargh. Twenty years of shell programming, and still I'm making rookie
> mistakes when it comes to quoting. The answer is of course:
>
> % print -l "$rlines[@]"

You can also use "${(@)rlines}" as in the first line of your code
(which is also necessary if you want to use a subscript range).

-- 
Mikael Magnusson



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