small changes to some error messages; greatly expanded builtins tests

This commit is contained in:
Chet Ramey
2023-09-28 10:47:17 -04:00
parent b3958b3ab4
commit 00edd0ee50
71 changed files with 1330 additions and 179 deletions
+7 -5
View File
@@ -129,7 +129,9 @@ grep [ 123 ] *
6 7 9 5
length = 3
value = new1 new2 new3
./array.tests: line 257: narray: unbound variable
./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
./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
@@ -156,10 +158,10 @@ for case if then else
12 14 16 18 20
4414758999202
aaa bbb
./array.tests: line 307: syntax error near unexpected token `<>'
./array.tests: line 307: `metas=( <> < > ! )'
./array.tests: line 308: syntax error near unexpected token `<>'
./array.tests: line 308: `metas=( [1]=<> [2]=< [3]=> [4]=! )'
./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]=! )'
abc 3
case 4
abc case if then else 5