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

Re: 5.3.1-dev-0 difference in array=( "${(PA@)var_name}" )



On Wed, Jun 14, 2017 at 11:03 PM, Sebastian Gniazdowski
<psprint@xxxxxxxxxxx> wrote:
> On 14-06-2017 at 22:35:51, Bart Schaefer (schaefer@xxxxxxxxxxxxxxxx) wrote:
>>
>> So in the above example ${(P)var_name} returns a scalar and the (@)
>> flag is also meaningless. In this next example --
>
> I think @ has an actual effect:

Well, yes, it has an effect if $abcdef is already an array (as in your
new example).  It has no effect if $abcdef is unset (as in your
original example) or is a scalar.



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