vault backup: 2024-05-30 17:49:46
This commit is contained in:
parent
aa41e0d492
commit
f1929b060e
@ -13,8 +13,8 @@ echo "Hello, World!"
|
||||
In bash, variable assignment is done with the `=` operator. Variables are conventionally named with `SCREAMING_SNAKE_CASE`, and can be accessed by prefixing the variable name with a dollar sign (`$`):
|
||||
```bash
|
||||
#!/bin/bash
|
||||
# There may not be any spaces
|
||||
# There may not be any spaces used during assignment, `A = B` means something different than `A=B`
|
||||
# Assignment is done with the equal sign (=) operator:
|
||||
MY_VARIABLE="
|
||||
|
||||
MY_VARIABLE="Hi Mom!"
|
||||
echo $MY_VARIABLE
|
||||
```
|
Loading…
Reference in New Issue
Block a user