quoting

Bash Quoted empty arguments

A quoted empty scalar in an ordinary command produces one empty argument. An unquoted empty expansion may vanish.

Formal Syntax & Structure

bash syntaxbash
"$empty"

Return Value

behavior

See the syntax and description for shell interpretation or output.

Working Example

Example Snippetbash
label=bash -c 'printf "count=%s\n" "$#"' demo "$label"bash -c 'printf "count=%s\n" "$#"' demo $label
Bash Reference