spec test index / oilshell.org
16 passed, 12 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped 6 failed under osh
osh | 2 Case folding - Unicode characters [osh stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\x80\xc3\x88\nL \xc3\x80\xc3\x88\nu \xc3\xa1\xc3\xa9\nU \xc3\xa1\xc3\xa9\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' stdout: u ÀÈ U ÀÈ l ÀÈ L ÀÈ u áé U áé l áé L áéstderr: |
osh-cpp | 2 Case folding - Unicode characters [osh-cpp stdout] Expected 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\xa0\xc3\x88\nL \xc3\xa0\xc3\xa8\nu \xc3\x81\xc3\xa9\nU \xc3\x81\xc3\x89\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' Got 'u \xc3\x80\xc3\x88\nU \xc3\x80\xc3\x88\nl \xc3\x80\xc3\x88\nL \xc3\x80\xc3\x88\nu \xc3\xa1\xc3\xa9\nU \xc3\xa1\xc3\xa9\nl \xc3\xa1\xc3\xa9\nL \xc3\xa1\xc3\xa9\n' stdout: u ÀÈ U ÀÈ l ÀÈ L ÀÈ u áé U áé l áé L áéstderr: |
osh | 3 Case folding - multi code point [osh stdout] Expected '', got 'shell\nu \xc3\x9f\nU \xc3\x9f\nl \xc3\x9f\nL \xc3\x9f\n\npython2\n\xc3\x9f\n\xc3\x9f\n\n' stdout: shell u ß U ß l ß L ß python2 ß ßstderr: |
osh-cpp | 3 Case folding - multi code point [osh-cpp stdout] Expected '', got 'shell\nu \xc3\x9f\nU \xc3\x9f\nl \xc3\x9f\nL \xc3\x9f\n\npython2\n\xc3\x9f\n\xc3\x9f\n\n' stdout: shell u ß U ß l ß L ß python2 ß ßstderr: |
osh | 4 Case folding that depends on locale (not enabled, requires Turkish locale) stdout: u I U I l i L istderr: |
osh-cpp | 4 Case folding that depends on locale (not enabled, requires Turkish locale) stdout: u I U I l i L istderr: |
osh | 5 Lower Case with constant string (VERY WEIRD) [osh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh status] Expected 0, got 1 stdout: stderr: echo ${x,A} ^ [ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument |
osh-cpp | 5 Lower Case with constant string (VERY WEIRD) [osh-cpp stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh-cpp status] Expected 0, got 1 stdout: stderr: echo ${x,A} ^ [ stdin ]:2: fatal: Id.VOp1_Comma can't have an argument |
osh | 6 Lower Case glob [osh stdout] Expected 'ABC DEF\nABC DEF\n', got '' [osh status] Expected 0, got 1 [osh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last): File "/home/uke/oil/bin/oils_for_unix.py", line 201, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 170, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 140, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1243, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 365, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 2050, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1849, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1584, in _Dispatch status = self._DoSimple(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 830, in _DoSimple allow_assign=True) File "/home/uke/oil/osh/word_eval.py", line 2282, in EvalWordSequence2 self._EvalWordToParts(w, part_vals, EXTGLOB_FILES) File "/home/uke/oil/osh/word_eval.py", line 1769, in _EvalWordToParts self._EvalWordPart(p, word_part_vals, eval_flags) File "/home/uke/oil/osh/word_eval.py", line 1677, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/uke/oil/osh/word_eval.py", line 1438, in _EvalBracedVarSub val = self._ApplyUnarySuffixOp(val, op) File "/home/uke/oil/osh/word_eval.py", line 879, in _ApplyUnarySuffixOp has_extglob) File "/home/uke/oil/osh/string_ops.py", line 441, in DoUnarySuffixOp raise NotImplementedError(ui.PrettyId(id_)) NotImplementedError: Id.VOp1_Comma |
osh-cpp | 6 Lower Case glob [osh-cpp stdout] Expected 'ABC DEF\nABC DEF\n', got '' [osh-cpp status] Expected 0, got -6 stdout: stderr: osh: _gen/bin/oils_for_unix.mycpp.cc:44674: BigStr* string_ops::DoUnarySuffixOp(BigStr*, syntax_asdl::Token*, BigStr*, bool): Assertion `false' failed. timeout: the monitored command dumped core |
osh | 7 ${x@u} U L - upper / lower case (bash 5.1 feature) [osh stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got '' [osh status] Expected 0, got 2 stdout: stderr: echo "${x@u}" ^ [ stdin ]:3: Unexpected token in ${} (VOp3) |
osh-cpp | 7 ${x@u} U L - upper / lower case (bash 5.1 feature) [osh-cpp stdout] Expected 'Abc DEF\nABC DEF\nabc def\n', got '' [osh-cpp status] Expected 0, got 2 stdout: stderr: echo "${x@u}" ^ [ stdin ]:3: Unexpected token in ${} (VOp3) |
osh | 9 ${array@Q} and ${array[@]@Q} stdout: x $'y\\nz' x xstderr: |
osh-cpp | 9 ${array@Q} and ${array[@]@Q} stdout: x $'y\\nz' x xstderr: |
osh | 14 undef and @P @Q @a stdout: status=0 '' status=0 status=0stderr: |
osh-cpp | 14 undef and @P @Q @a stdout: status=0 '' status=0 status=0stderr: |
osh | 15 argv array and @P @Q @a stdout: status=1 a $'b\\nc' status=0 a status=0stderr: echo ${@@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashArray |
osh-cpp | 15 argv array and @P @Q @a stdout: status=1 a $'b\\nc' status=0 a status=0stderr: echo ${@@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashArray |
osh | 16 assoc array and @P @Q @a stdout: status=1 status=1 A - A status=0stderr: declare -A A=(["x"]="y"); echo ${A@P} - ${A[@]@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashAssoc declare -A A=(["x"]="y"); echo ${A@Q} - ${A[@]@Q} ^~ [ -c flag ]:1: fatal: Can't use @Q on BashAssoc |
osh-cpp | 16 assoc array and @P @Q @a stdout: status=1 status=1 A - A status=0stderr: declare -A A=(["x"]="y"); echo ${A@P} - ${A[@]@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashAssoc declare -A A=(["x"]="y"); echo ${A@Q} - ${A[@]@Q} ^~ [ -c flag ]:1: fatal: Can't use @Q on BashAssoc |
osh | 17 ${!var[@]@X} stdout: fail 'x y' astderr: declare -A A=(["x"]="y"); echo ${!A[@]@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashArray |
osh-cpp | 17 ${!var[@]@X} stdout: fail 'x y' astderr: declare -A A=(["x"]="y"); echo ${!A[@]@P} ^~ [ -c flag ]:1: fatal: Can't use @P on BashArray |
osh | 19 ${!A@a} and ${!A[@]@a} [osh stdout] Expected 'x=\nx=\n', got 'x=a\n' [osh status] Expected 0, got 1 stdout: x=astderr: echo x=${!A@a} ^~~~ [ stdin ]:3: fatal: Indirect expansion of assoc array |
osh-cpp | 19 ${!A@a} and ${!A[@]@a} [osh-cpp stdout] Expected 'x=\nx=\n', got 'x=a\n' [osh-cpp status] Expected 0, got 1 stdout: x=astderr: echo x=${!A@a} ^~~~ [ stdin ]:3: fatal: Indirect expansion of assoc array |