Updated SC1066 (markdown)

Vidar Holen
2020-12-11 00:12:58 -08:00
parent d069913bd1
commit 12f95885ba

@@ -20,10 +20,19 @@ declare "$name=hello world"
echo "$foo"
```
Or if you actually wanted to compare the value, use a test expression:
```sh
if [ "$greeting" = "hello world" ]
then
echo "Programmer, I presume?"
fi
```
### Rationale:
Unlike Perl or PHP, `$` is not used when assigning to a variable.
### Exceptions
None
If you wanted to