mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[bash/en] correct comment grammar
This commit is contained in:
parent
52463c3f44
commit
599896735b
@ -64,8 +64,9 @@ echo "$variable" # => Some string
|
|||||||
echo '$variable' # => $variable
|
echo '$variable' # => $variable
|
||||||
# When you use a variable itself — assign it, export it, or else — you write
|
# When you use a variable itself — assign it, export it, or else — you write
|
||||||
# its name without $. If you want to use the variable's value, you should use $.
|
# its name without $. If you want to use the variable's value, you should use $.
|
||||||
# Note that ' (single quote) won't expand the variables!
|
# Note that ' (single quote) won't expand variables!
|
||||||
# You can write variable without surrounding quotes but it's not recommended.
|
# You can write variables without surrounding double quotes but it's not
|
||||||
|
# recommended due to how Bash handles variables with spaces in them.
|
||||||
|
|
||||||
# Parameter expansion ${...}:
|
# Parameter expansion ${...}:
|
||||||
echo "${variable}" # => Some string
|
echo "${variable}" # => Some string
|
||||||
|
Loading…
Reference in New Issue
Block a user