I'm trying to insert an argument in the middle of a command with "$@" for learning purposes. I don't know if that's optimal, but it's what I've been trying to do. This is what I have: when I run test.sh foo it runs echo "$@" bar which I was hoping would print foo bar. Instead, it's printing bar foo. I don't know neither if that's expected behavior nor what I should do instead.
test.sh foo
# runs
echo "$@" bar
# which is printing
bar foo
Edit: I had simplified the context and was in reality trying to use "$@" in an alias.