quoting

Bash Double quotes

Permits parameter expansion while suppressing ordinary splitting and filename expansion of scalar values. Other expansions and special parameters have additional rules.

Formal Syntax & Structure

bash syntaxbash
"$name"

Return Value

behavior

See the syntax and description for shell interpretation or output.

Working Example

Example Snippetbash
name='Daily report'printf '[%s]\n' prefix-"$name"'.txt'
Bash Reference