summaryrefslogtreecommitdiffhomepage
path: root/bash.html.markdown
diff options
context:
space:
mode:
authorJohnYangSam <johnys@stanford.edu>2013-09-12 02:01:52 -0700
committerJohnYangSam <johnys@stanford.edu>2013-09-12 02:01:52 -0700
commit1528dd4fbe680f26646be3af17d9fb5dce209dd0 (patch)
treeaf224c14d7c5ce2b1f8922daa137f2ac7f0988df /bash.html.markdown
parentb28900b889c27f8500a44d9f9bcad5244f1f79bd (diff)
Correct bash for...in loop example
Removed the $ in the variable declaration of the for...in bash loop to correct the code.
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 76c794c6..708131bd 100644
--- a/bash.html.markdown
+++ b/bash.html.markdown
@@ -82,7 +82,7 @@ esac
#For loops iterate for as many arguments given:
#The contents of var $VARIABLE is printed three times.
-for $VARIABLE in x y z
+for VARIABLE in x y z
do
echo "$VARIABLE"
done