Suppose I call a script with 3 arguments, a, abc, and xyz such that $@ contains these three arguments.
Suppose I want to call write a command:
command fooa fooabc fooxyz bara barabc barxyz
How would I accomplish that?
I don't think {foo,bar}$@ or {foo,bar}{$@} work since brace expansion happens before $@ is expanded.