summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmilySeville7cfg <EmilySeville7cf@gmail.com>2022-08-19 10:20:15 +1000
committerEmilySeville7cfg <EmilySeville7cf@gmail.com>2022-08-19 10:20:15 +1000
commit7bcf933601fcdde118a2e745cb026b8c45910f51 (patch)
treed6526748936cf3d8bed42d0c0e2bbae66ebd6b20
parent242d5da837ff2458560431388b4848bae7e52e15 (diff)
Update bash help:
- small grammar enhancements
-rw-r--r--bash.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 53c3d96c..bccc5773 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -63,7 +63,7 @@ variable= "Some string" # => returns error: "Some string: command not found"
# Using the variable:
echo "$variable" # => Some string
echo '$variable' # => $variable
-# When you use the 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 $.
# Note that ' (single quote) won't expand the variables!
# You can write variable without surrounding quotes but it's not recommended.
@@ -96,7 +96,7 @@ other_variable="variable"
echo ${!other_variable} # => Some string
# This will expand the value of `other_variable`.
-# Default value for variable:
+# The default value for variable:
echo "${foo:-"DefaultValueIfFooIsMissingOrEmpty"}"
# => DefaultValueIfFooIsMissingOrEmpty
# This works for null (foo=) and empty string (foo=""); zero (foo=0) returns 0.