mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-10 21:50:49 +02:00
commit bash-20130111 snapshot
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user