I found references for parameter expansion, but none of them explain what $^@
does. From context, I think it's used to expand e.g. ~/$^@
into ~/$1 ~/$2 ...
, but I'm not sure, and I can't find any confirmation. In addition to an explanation, I'd appreciate knowing what this expansion is called, and a link to documentation about it if possible. Thanks!
EDIT: I've been informed this might be particular to zsh. If anyone has further information, please let me know.
zsh
script? That shell would be able to do exactly that, and it means exactly what you have described, it appends a string to all elements of an array. I'm not turning this into a proper answer as I don't know for sure what shell the script was written for (there may be other shells that does something similar, Stéphane would know).echo ~/$^@
zsh
thenecho ~/$^@
doesn't do anything.