mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
Correct bash for...in loop example
Removed the $ in the variable declaration of the for...in bash loop to correct the code.
This commit is contained in:
parent
b28900b889
commit
1528dd4fbe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user