This way better solution using the `(A)` flag was given to me in the zsh-users mailing list back in 2022 but I forgot to apply it. See zshexpn(1): > Convert the substitution into an array expression, even if it > otherwise would be scalar. Thanks Mikael! Link: https://www.zsh.org/mla/users/2022/msg00668.html