On 5/19/18 3:40 PM, Ilkka Virta wrote:
> In Bash, using "$@" in an assignment, (as inĀ  a="$@" ) concatenates the
> positional parameters to single string, joined with spaces. Somewhat
> similarly to what "$*" does, except that $* uses the first letter of IFS,
> but $@ always uses a space.

The key is word splitting, not assignment in particular.  The shell uses
spaces to separate the positional parameters if the word is not going to
be split. I will add somethng to describe that.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to