Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: can print but not assign to variable
On Wed, Oct 26, 2022, at 5:49 PM, Ray Andrews wrote:
> On 2022-10-26 14:38, Roman Perepelitsa wrote:
>> $ var=( (#i)$W/rap )
>
> :-)
>
> What do you call that construction? I know "(( ))" and "$(( ))" and
> "$()" but I don't really know that one tho I've used it a few times on
> faith. As usual, if I knew what it was called I'd read up on it.
It's just an array assignment. See zshparam(1).
You originally attempted to do a simple scalar assignment, for which
globbing is not performed on the right-hand side.
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author