commit bash-20130111 snapshot

This commit is contained in:
Chet Ramey
2013-02-05 16:43:03 -05:00
parent 1b1fe46776
commit ad4aef0831
45 changed files with 26056 additions and 13887 deletions
+3
View File
@@ -231,6 +231,9 @@ ok
1
1 2 3 4 5 6 7
0 1 2 3 4 5 6 7
0
0, 0
0, 1
8 12
./arith.tests: line 286: ((: x=9 y=41 : syntax error in expression (error token is "y=41 ")
./arith.tests: line 290: a b: syntax error in expression (error token is "b")
+6
View File
@@ -44,3 +44,9 @@ n=0 ; (( (a[n]=++n)<7&&a[0])); echo "${a[@]:1}"
n=0 a="(a[n]=++n)<7&&a[0]"; ((a[0])); echo "${a[@]:1}"
n=0 a="(a[n]=n++)<7&&a"; ((a)); echo "${a[@]:1}"
# bugs with lvalue caching and pointer aliasing through bash-4.2
echo $(( a=(y[0] + y[1]) & 0xff, b=(y[2] + y[3]) & 0xff, a << 8 | b))
echo $a, $b
((a = y[0], b = 1 ))
echo $a, $b