summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index e0c12f97..58dc3003 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -64,7 +64,8 @@ echo ${VARIABLE:0:7}
# 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