summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-14 21:39:49 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-10-14 21:39:49 -0400
commitaa4e1888910a2b5ca0698f171e1ce9be52ba519f (patch)
tree36cd238544428b523f55d202d8b0a69887d38c2b
parent4cb122f65d1b9668107b3aeff91703101565fd8d (diff)
fix mistake in one of the examples in bash-arrays
-rw-r--r--public/bash-arrays.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/bash-arrays.md b/public/bash-arrays.md
index e78b8d5..902635a 100644
--- a/public/bash-arrays.md
+++ b/public/bash-arrays.md
@@ -74,7 +74,7 @@ done<hr> - &lt;foo&gt;
<pre><code>#!/bin/bash
array=(foo bar baz)
-for item in "${array[@]}"; do
+for item in "${array[*]}"; do
echo " - &lt;${item}&gt;"
done<hr> - &lt;foo bar baz&gt;</code></pre>