Comment 12 for bug 646877

Revision history for this message
Delan Azabani (azabani) wrote :

That's what I thought too. However, according to bash(1),

    @ Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, each parameter expands to a separate word. That is, "$@" is equivalent to "$1" "$2" ... If the double-quoted expansion occurs within a word, the expansion of the first parameter is joined with the beginning part of the original word, and the expansion of the last parameter is joined with the last part of the original word. When there are no positional parameters, "$@" and $@ expand to nothing (i.e., they are removed).

and, specifically, this,

    That is, "$@" is equivalent to "$1" "$2" ...