From 027e152dda5f26e2aa74f6739c21f9ca3a8a4fde Mon Sep 17 00:00:00 2001 From: Joyce Kung Date: Fri, 13 Oct 2017 12:10:32 -0400 Subject: 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. --- bash.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash.html.markdown') 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! -- cgit v1.2.3