parameter-expansion
Bash array expansion @
A standalone double-quoted expansion contributes one argument per assigned element; an empty array contributes none.
Formal Syntax & Structure
bash syntaxbash
"${name[@]}"Return Value
words
A standalone double-quoted expansion contributes one argument per assigned element; an empty array contributes none.
Working Example
Example Snippetbash
items=('daily report' '' '*')set -- "${items[@]}"printf 'count=%s\n' "$#"for item; do printf '[%s]\n' "$item"; done