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

Re: string to array space problem in filenames



On Thu, Sep 3, 2015 at 5:23 PM, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> On 09/02/2015 10:25 PM, Bart Schaefer wrote:
>
> Thank you gentlemen, like riding a bike, it's easy if you know how:
>>
>> You mean like:
>>
>>      print -l "${array[@]}" > file
>>
>>
> Previous similar invocations of 'print' seemed to need this form:
>
>         print -rlu2 "${array[@]}" > file
>
> ... which I took on faith, but as Bart shows, it seems that in this
> situation the 'ru2'
> are bad medicine.

-r is good to use as I explained in my other mail, -u2 means to print
to stderr which would be a very strange thing to do here, since it
won't go to 'file'.

-- 
Mikael Magnusson



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