-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1066
koalaman edited this page Oct 31, 2014
·
6 revisions
$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
:
name=foo
declare "$name=hello world"
echo "$foo"
Unlike Perl or PHP, $
is not used when assigning to a variable.
None