aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-20 17:55:48 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-06-22 19:53:01 +0800
commitba6972dbe97c47614f4aeef8187ae15e08b57ee2 (patch)
treef5260353a1bf3172dbea265bc04fc975367d029a /scripts
parentUtility: support printing tokens received by walker (diff)
downloadlibbash-ba6972dbe97c47614f4aeef8187ae15e08b57ee2.tar.gz
libbash-ba6972dbe97c47614f4aeef8187ae15e08b57ee2.tar.bz2
libbash-ba6972dbe97c47614f4aeef8187ae15e08b57ee2.zip
Walker: support shortcut capability for logic or
Diffstat (limited to 'scripts')
-rw-r--r--scripts/binary_arithmetic.bash1
-rw-r--r--scripts/binary_arithmetic.bash.result1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/binary_arithmetic.bash b/scripts/binary_arithmetic.bash
index 330d07b..114655a 100644
--- a/scripts/binary_arithmetic.bash
+++ b/scripts/binary_arithmetic.bash
@@ -63,3 +63,4 @@ FOO057="$((${FOO056}++))"
FOO058="$((${FOO056}+=10))"
ARRAY=(1 2 3 4 5)
FOO059="$((100**0))"
+FOO060="$((FOO059||FOO059++))"
diff --git a/scripts/binary_arithmetic.bash.result b/scripts/binary_arithmetic.bash.result
index de065d6..740548d 100644
--- a/scripts/binary_arithmetic.bash.result
+++ b/scripts/binary_arithmetic.bash.result
@@ -58,5 +58,6 @@ FOO056=value
FOO057=100
FOO058=111
FOO059=1
+FOO060=1
PARTIAL=5
value=111