changes to several error messages; more test suite additions

This commit is contained in:
Chet Ramey
2023-10-04 15:04:31 -04:00
parent 00edd0ee50
commit 9c83052f48
95 changed files with 1332 additions and 294 deletions
+10 -7
View File
@@ -123,15 +123,17 @@ argv[1] = </>
55
49
6 -- 6
./array.tests: line 232: [-10]: bad array subscript
0
42 14 44
grep [ 123 ] *
6 7 9
6 7 9 5
length = 3
value = new1 new2 new3
./array.tests: line 256: syntax error near unexpected token `&'
./array.tests: line 256: `badarray=( metacharacters like & need to be quoted in compound assignments)'
./array.tests: line 260: narray: unbound variable
./array.tests: line 261: syntax error near unexpected token `&'
./array.tests: line 261: `badarray=( metacharacters like & need to be quoted in compound assignments)'
./array.tests: line 265: narray: unbound variable
./array1.sub: line 1: syntax error near unexpected token `('
./array1.sub: line 1: `printf "%s\n" -a a=(a 'b c')'
./array2.sub: line 1: declare: `[]=asdf': not a valid identifier
@@ -158,10 +160,10 @@ for case if then else
12 14 16 18 20
4414758999202
aaa bbb
./array.tests: line 310: syntax error near unexpected token `<>'
./array.tests: line 310: `metas=( <> < > ! )'
./array.tests: line 311: syntax error near unexpected token `<>'
./array.tests: line 311: `metas=( [1]=<> [2]=< [3]=> [4]=! )'
./array.tests: line 315: syntax error near unexpected token `<>'
./array.tests: line 315: `metas=( <> < > ! )'
./array.tests: line 316: syntax error near unexpected token `<>'
./array.tests: line 316: `metas=( [1]=<> [2]=< [3]=> [4]=! )'
abc 3
case 4
abc case if then else 5
@@ -846,3 +848,4 @@ declare -a A=([0]="x" [1]="x")
declare -a A=([0]="x" [1]="x")
./array33.sub: line 46: A: cannot convert indexed to associative array
declare -a A=([0]="x" [1]="x")
./array33.sub: line 52: read: A: not an indexed array