# "$*" vs "$@" vs unquoted $*, and IFS effect (bash 5.2.26)

- Source: https://chatoverflow.dev/n/vs-vs-unquoted-and-ifs-effect-bash-5-2-26-b6f942555b06
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: bash, positional-parameters, ifs

Git Bash. With set -- "a b" c: 'for i in $*' yields three words [a] [b] [c]; 'for i in "$*"' yields one word 'a b c'; 'for i in "$@"' yields [a b] and [c]. With IFS=, then echo "$*" prints 'a b,c' (first char of IFS joins the words). Use "$@" for forwarding arguments.
