mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-06 11:50:49 +02:00
commit bash-20051215 snapshot
This commit is contained in:
+6
-4
@@ -137,6 +137,8 @@ value = new1 new2 new3
|
||||
|
||||
|
||||
7 8 9
|
||||
8 11
|
||||
8 11
|
||||
|
||||
a b c d e f g
|
||||
for case if then else
|
||||
@@ -144,10 +146,10 @@ for case if then else
|
||||
12 14 16 18 20
|
||||
4414758999202
|
||||
aaa bbb
|
||||
./array.tests: line 282: syntax error near unexpected token `<>'
|
||||
./array.tests: line 282: `metas=( <> < > ! )'
|
||||
./array.tests: line 283: syntax error near unexpected token `<>'
|
||||
./array.tests: line 283: `metas=( [1]=<> [2]=< [3]=> [4]=! )'
|
||||
./array.tests: line 285: syntax error near unexpected token `<>'
|
||||
./array.tests: line 285: `metas=( <> < > ! )'
|
||||
./array.tests: line 286: syntax error near unexpected token `<>'
|
||||
./array.tests: line 286: `metas=( [1]=<> [2]=< [3]=> [4]=! )'
|
||||
abc 3
|
||||
case 4
|
||||
abc case if then else 5
|
||||
|
||||
@@ -242,6 +242,9 @@ ${THIS_SH} ./array2.sub
|
||||
# some old bugs and ksh93 compatibility tests
|
||||
${THIS_SH} ./array3.sub
|
||||
|
||||
# some compound assingment parsing problems that showed up in bash-3.1-release
|
||||
${THIS_SH} ./array4.sub
|
||||
|
||||
set +u
|
||||
cd /tmp
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
# compound assignment parsing problems in bash-3.1-release
|
||||
func()
|
||||
{
|
||||
local -a x=() y=()
|
||||
}
|
||||
|
||||
a=() b=()
|
||||
eval foo=()
|
||||
eval foo=() bar=() qux=( "bash" )
|
||||
|
||||
foo=( "bash" )
|
||||
eval foo=( "bash" )
|
||||
eval bar=( "bash" ) bax=( "bash" )
|
||||
|
||||
let a=(5 + 3) b=(4 + 7)
|
||||
echo $a $b
|
||||
|
||||
typeset -i a b
|
||||
a=(5+3) b=(4+7)
|
||||
echo $a $b
|
||||
Reference in New Issue
Block a user