vault backup: 2024-05-30 17:49:46
This commit is contained in:
		| @@ -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 (`$`): | 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 | ```bash | ||||||
| #!/bin/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: | # Assignment is done with the equal sign (=) operator: | ||||||
| MY_VARIABLE=" | MY_VARIABLE="Hi Mom!" | ||||||
|  | echo $MY_VARIABLE | ||||||
| ``` | ``` | ||||||
		Reference in New Issue
	
	Block a user
	 zleyyij
					zleyyij