On 2022-10-26 14:57, Lawrence Velázquez wrote:
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.
Ah! Yes, I do know that. Yes, we must force 'var' to become an array. Stupid ... when I'm doing it with understanding, I get "( )" just fine, but when I don't get the necessity I'm lost :( Ok, all clear.
Tx Roman and Lawrence.
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.