summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bash.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 81f85d28..4c50c653 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -65,7 +65,8 @@ echo ${VARIABLE:0:LENGTH}
# Default value for variable
echo ${FOO:-"DefaultValueIfFOOIsMissingOrEmpty"}
-# This works for null (FOO=), empty string (FOO=""), zero (FOO=0) returns 0
+# This works for null (FOO=) and empty string (FOO=""); zero (FOO=0) returns 0.
+# Note that it only returns default value and doesn't change variable value.
# Builtin variables:
# There are some useful builtin variables, like