aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-07-19 22:24:07 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-07-20 23:08:32 +0800
commitc362dfac46df8e73df50a0694e59f5087104ad2b (patch)
tree965df68b4712d2b98b8e67f98f2a4f76733389a2 /scripts
parentBuild: remove the time limit option (diff)
downloadlibbash-c362dfac46df8e73df50a0694e59f5087104ad2b.tar.gz
libbash-c362dfac46df8e73df50a0694e59f5087104ad2b.tar.bz2
libbash-c362dfac46df8e73df50a0694e59f5087104ad2b.zip
Parser: fix parameter expansion value
Now the rule for expansion value follows bash manual. The delete expansion is fixed to use the replace pattern rule rather than the expansion value rule.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/binary_arithmetic.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/binary_arithmetic.bash b/scripts/binary_arithmetic.bash
index 8aca099..36b4c9d 100644
--- a/scripts/binary_arithmetic.bash
+++ b/scripts/binary_arithmetic.bash
@@ -57,7 +57,7 @@ echo "$((ARRAY[8]^=3))"
PARTIAL[8]=5
echo "$((PARTIAL[8]*=1))"
echo "$((${#ARRAY[@]}))"
-echo "$((${ARRAY[5]:-10}))"
+#echo "$((${ARRAY[5]:-10}))"
echo "$((${ARRAY:0}))"
value=100
FOO056="value"