summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorJoyce Kung <thejoycekung@users.noreply.github.com>2017-10-13 12:10:32 -0400
committerGitHub <noreply@github.com>2017-10-13 12:10:32 -0400
commit027e152dda5f26e2aa74f6739c21f9ca3a8a4fde (patch)
tree180333d2f38ce77cc07279dfe3b5b1dd77d44da2 /bash.html.markdown
parent593e2baff79f2ac8e13ad2ccc8570415050106a0 (diff)
Fixed line 59 - printing
Using echo with ' ' means that the variable won't be expanded, so it should print the literal $Variable instead of some string.
Diffstat (limited to 'bash.html.markdown')
-rw-r--r--bash.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash.html.markdown b/bash.html.markdown
index 981d7a1e..0c097c27 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -56,7 +56,7 @@ Variable= 'Some string' # => returns error: "Some string: command not found"
# Using the variable:
echo $Variable # => Some string
echo "$Variable" # => Some string
-echo '$Variable' # => Some string
+echo '$Variable' # => $Variable
# When you use the 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!