We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$greeting="Hello World"
greeting="Hello World"
Alternatively, if the goal was to assign to a variable whose name is in another variable (indirection), use declare:
declare
name=foo declare "$name=hello world" echo "$foo"
Unlike Perl or PHP, $ is not used when assigning to a variable.
$
None
There was an error while loading. Please reload this page.