special-parameter
Bash "$*" — join arguments
In double quotes, joins positional parameters into one word separated by the first character of IFS, a space if IFS is unset, or no separator if IFS is empty.
Formal Syntax & Structure
bash syntaxbash
"$*"Return Value
string
Joined positional arguments.
Working Example
Example Snippetbash
bash -c 'printf "<%s>\n" "$@"; printf "joined=<%s>\n" "$*"' demo 'New York' '' report