spec test index / oilshell.org
53 passed, 0 OK, 0 not implemented, 0 BUG, 64 failed, 0 timeouts, 0 cases skipped
osh_.py | 0 "${empty:-}" [osh_.py stdout] Expected "['']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${empty:-}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 0 "${empty:-}" [osh_.cc stdout] Expected "['']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${empty:-}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 1 ${empty:-} [osh_.py stdout] Expected '[]\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${empty:-} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 1 ${empty:-} [osh_.cc stdout] Expected '[]\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${empty:-} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 2 array with empty values [osh_.py stdout] Expected "['', 'x', '', '']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${A[@]}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 2 array with empty values [osh_.cc stdout] Expected "['', 'x', '', '']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${A[@]}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 3 substitution of IFS character, quoted and unquoted [osh_.py stdout] Expected "['']\n[':']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py $s ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "$s" ^~~~~~~ [ stdin ]:4: 'argv.py' not found |
osh_.cc | 3 substitution of IFS character, quoted and unquoted [osh_.cc stdout] Expected "['']\n[':']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py $s ^~~~~~~ [ stdin ]:3: 'argv.py' not found argv.py "$s" ^~~~~~~ [ stdin ]:4: 'argv.py' not found |
osh_.py | 4 :- [osh_.py stdout] Expected "['a', 'b']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${empty:-a} ${Unset:-b} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 4 :- [osh_.cc stdout] Expected "['a', 'b']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${empty:-a} ${Unset:-b} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 5 - [osh_.py stdout] Expected "['b']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${empty-a} ${Unset-b} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 5 - [osh_.cc stdout] Expected "['b']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${empty-a} ${Unset-b} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 6 Inner single quotes [osh_.py stdout] Expected "['b']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-'b'} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 6 Inner single quotes [osh_.cc stdout] Expected "['b']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-'b'} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 7 Inner single quotes, outer double quotes [osh_.py stdout] Expected '["\'b\'"]\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-'b'}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 7 Inner single quotes, outer double quotes [osh_.cc stdout] Expected '["\'b\'"]\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-'b'}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 8 Inner double quotes [osh_.py stdout] Expected "['b']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"b"} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 8 Inner double quotes [osh_.cc stdout] Expected "['b']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"b"} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 9 Inner double quotes, outer double quotes [osh_.py stdout] Expected "['b']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset-"b"}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 9 Inner double quotes, outer double quotes [osh_.cc stdout] Expected "['b']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset-"b"}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 10 Multiple words: no quotes [osh_.py stdout] Expected "['a', 'b', 'c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-a b c} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 10 Multiple words: no quotes [osh_.cc stdout] Expected "['a', 'b', 'c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-a b c} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 11 Multiple words: no outer quotes, inner single quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-'a b c'} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 11 Multiple words: no outer quotes, inner single quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-'a b c'} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 12 Multiple words: no outer quotes, inner double quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"a b c"} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 12 Multiple words: no outer quotes, inner double quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"a b c"} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 13 Multiple words: outer double quotes, no inner quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-a b c}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 13 Multiple words: outer double quotes, no inner quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-a b c}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 14 Multiple words: outer double quotes, inner double quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-"a b c"}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 14 Multiple words: outer double quotes, inner double quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-"a b c"}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 15 Multiple words: outer double quotes, inner single quotes [osh_.py stdout] Expected '["\'a b c\'"]\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-'a b c'}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 15 Multiple words: outer double quotes, inner single quotes [osh_.cc stdout] Expected '["\'a b c\'"]\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-'a b c'}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 16 Mixed inner quotes [osh_.py stdout] Expected "['a b', 'c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"a b" c} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 16 Mixed inner quotes [osh_.cc stdout] Expected "['a b', 'c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"a b" c} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 17 Mixed inner quotes with outer quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-"a b" c}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 17 Mixed inner quotes with outer quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-"a b" c}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 18 part_value tree with multiple words [osh_.py stdout] Expected "['1 2', '3 45', '6 7']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${a:-${a:-"1 2" "3 4"}5 "6 7"} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.cc | 18 part_value tree with multiple words [osh_.cc stdout] Expected "['1 2', '3 45', '6 7']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${a:-${a:-"1 2" "3 4"}5 "6 7"} ^~~~~~~ [ stdin ]:1: 'argv.py' not found |
osh_.py | 19 part_value tree on RHS [osh_.py stdout] Expected "['1 2 3 45 6 7']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${v}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 19 part_value tree on RHS [osh_.cc stdout] Expected "['1 2 3 45 6 7']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${v}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 20 Var with multiple words: no quotes [osh_.py stdout] Expected "['a', 'b', 'c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-$var} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 20 Var with multiple words: no quotes [osh_.cc stdout] Expected "['a', 'b', 'c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-$var} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 21 Multiple words: no outer quotes, inner single quotes [osh_.py stdout] Expected "['$var']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-'$var'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 21 Multiple words: no outer quotes, inner single quotes [osh_.cc stdout] Expected "['$var']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-'$var'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 22 Multiple words: no outer quotes, inner double quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"$var"} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 22 Multiple words: no outer quotes, inner double quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-"$var"} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 23 Multiple words: outer double quotes, no inner quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-$var}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 23 Multiple words: outer double quotes, no inner quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-$var}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 24 Multiple words: outer double quotes, inner double quotes [osh_.py stdout] Expected "['a b c']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-"$var"}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 24 Multiple words: outer double quotes, inner double quotes [osh_.cc stdout] Expected "['a b c']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-"$var"}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 25 Multiple words: outer double quotes, inner single quotes [osh_.py stdout] Expected '["\'a b c\'"]\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-'$var'}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 25 Multiple words: outer double quotes, inner single quotes [osh_.cc stdout] Expected '["\'a b c\'"]\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${Unset:-'$var'}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 26 No outer quotes, Multiple internal quotes [osh_.py stdout] Expected "['Aa', 'b', 'c', ' a b cD', 'E', 'F']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-A$var " $var"D E F} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 26 No outer quotes, Multiple internal quotes [osh_.cc stdout] Expected "['Aa', 'b', 'c', ' a b cD', 'E', 'F']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${Unset:-A$var " $var"D E F} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 27 Strip a string with single quotes, unquoted [osh_.py stdout] Expected '["\'a", \'b\', \'c\']\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${foo%d\'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 27 Strip a string with single quotes, unquoted [osh_.cc stdout] Expected '["\'a", \'b\', \'c\']\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${foo%d\'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 28 Strip a string with single quotes, double quoted [osh_.py stdout] Expected '["\'a b c "]\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${foo%d\'}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 28 Strip a string with single quotes, double quoted [osh_.cc stdout] Expected '["\'a b c "]\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${foo%d\'}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 29 The string to strip is space sensitive [osh_.py stdout] Expected "['a b ', 'a b c d']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py "${foo%c d}" "${foo%c d}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 29 The string to strip is space sensitive [osh_.cc stdout] Expected "['a b ', 'a b c d']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py "${foo%c d}" "${foo%c d}" ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 30 The string to strip can be single quoted, outer is unquoted [osh_.py stdout] Expected "['a', 'b', 'a', 'b', 'c', 'd']\n", got '' [osh_.py status] Expected 0, got 127 stdout: stderr: argv.py ${foo%'c d'} ${foo%'c d'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.cc | 30 The string to strip can be single quoted, outer is unquoted [osh_.cc stdout] Expected "['a', 'b', 'a', 'b', 'c', 'd']\n", got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: argv.py ${foo%'c d'} ${foo%'c d'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found |
osh_.py | 32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently [osh_.py stdout] Expected '["\'c d\'", "\'c d\'"]\n[\'c d\', \'c d\']\n---\n[\'a b \', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n', got '---\n' [osh_.py status] Expected 0, got 127 stdout: ---stderr: argv.py "${undef-'c d'}" "${undef-'c d'}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found argv.py ${undef-'c d'} ${undef-'c d'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${foo%'c d'}" "${foo%'c d'}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found argv.py "${foo//'c d'/zzz}" "${foo//'c d'/zzz}" ^~~~~~~ [ stdin ]:7: 'argv.py' not found argv.py "${foo//'c d'/'zzz'}" "${foo//'c d'/'zzz'}" ^~~~~~~ [ stdin ]:8: 'argv.py' not found |
osh_.cc | 32 "${undef-'c d'}" and "${foo%'c d'}" are parsed differently [osh_.cc stdout] Expected '["\'c d\'", "\'c d\'"]\n[\'c d\', \'c d\']\n---\n[\'a b \', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n[\'a b zzz\', \'a b c d\']\n', got '---\n' [osh_.cc status] Expected 0, got 127 stdout: ---stderr: argv.py "${undef-'c d'}" "${undef-'c d'}" ^~~~~~~ [ stdin ]:1: 'argv.py' not found argv.py ${undef-'c d'} ${undef-'c d'} ^~~~~~~ [ stdin ]:2: 'argv.py' not found argv.py "${foo%'c d'}" "${foo%'c d'}" ^~~~~~~ [ stdin ]:5: 'argv.py' not found argv.py "${foo//'c d'/zzz}" "${foo//'c d'/zzz}" ^~~~~~~ [ stdin ]:7: 'argv.py' not found argv.py "${foo//'c d'/'zzz'}" "${foo//'c d'/'zzz'}" ^~~~~~~ [ stdin ]:8: 'argv.py' not found |