spec test index / oilshell.org
38 passed, 5 OK, 0 not implemented, 0 BUG, 23 failed, 0 timeouts, 0 cases skipped 3 failed under osh
osh | 1 setting readonly var (bash is only one where it's non-fatal) stdout: stderr: abc=def ^~~~ [ stdin ]:2: fatal: Can't assign to readonly value 'abc' |
osh_.py | 1 setting readonly var (bash is only one where it's non-fatal) stdout: stderr: abc=def ^~~~ [ stdin ]:2: fatal: Can't assign to readonly value 'abc' |
osh_.cc | 1 setting readonly var (bash is only one where it's non-fatal) stdout: stderr: abc=def ^~~~ [ stdin ]:2: fatal: Can't assign to readonly value 'abc' |
osh | 2 readonly with temp binding stdout: one status=0 hellostderr: echo potato < /does/not/exist || echo hello ^ [ stdin ]:4: Can't open '/does/not/exist': No such file or directory |
osh_.py | 2 readonly with temp binding stdout: one status=0 hellostderr: echo potato < /does/not/exist || echo hello ^ [ stdin ]:4: Can't open '/does/not/exist': No such file or directory |
osh_.cc | 2 readonly with temp binding [osh_.cc stdout] Expected 'one\nstatus=0\nhello\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.cc | 3 Failed redirect in assignment, vs. export [osh_.cc stdout] Expected 'abc=\nabc=\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh | 4 Evaluation order of redirect and ${undef?error} [osh stdout] Expected 'exists1\n', got 'exists1\nexists2\n' stdout: exists1 exists2stderr: rm: cannot remove '_tmp': Is a directory X=${x?bc} > walrus ^ [ -c flag ]:1: fatal: unset variable 'bc' >walrus echo ${a?bc} ^ [ -c flag ]:1: fatal: unset variable 'bc' |
osh_.py | 4 Evaluation order of redirect and ${undef?error} [osh_.py stdout] Expected 'exists1\n', got '' stdout: stderr: rm: cannot remove '_tmp': Is a directory $SH -c 'X=${x?bc} > walrus' ^~ [ stdin ]:3: '-c' not found $SH -c '>walrus echo ${a?bc}' ^~ [ stdin ]:6: '-c' not found |
osh_.cc | 4 Evaluation order of redirect and ${undef?error} [osh_.cc stdout] Expected 'exists1\n', got '' stdout: stderr: rm: cannot remove '_tmp': Is a directory $SH -c 'X=${x?bc} > walrus' ^~ [ stdin ]:3: '-c' not found $SH -c '>walrus echo ${a?bc}' ^~ [ stdin ]:6: '-c' not found |
osh_.cc | 5 Function def in pipeline [osh_.cc stdout] Expected 'ha\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |
osh_.py | 7 no shebang [osh_.py stdout] Expected 'hello\nhello\nhello 123\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: rm: cannot remove '_tmp': Is a directory $SH -c 'BLAH=123; ./snork' ^~ [ stdin ]:6: '-c' not found $SH -c 'BLAH=123; exec ./snork' ^~ [ stdin ]:7: '-c' not found $SH -c 'BLAH=123 exec ./snork' ^~ [ stdin ]:8: '-c' not found |
osh_.cc | 7 no shebang [osh_.cc stdout] Expected 'hello\nhello\nhello 123\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: rm: cannot remove '_tmp': Is a directory osh_eval.dbg: cpp/posix.h:143: void posix::dup2(int, int): Assertion `0' failed. |
osh_.py | 9 shift is fatal at top level? [osh_.py stdout] Expected 'hello\n', got '' [osh_.py status] Expected 0, got 127 stdout: stderr: $SH -c 'shift; echo hello' ^~ [ stdin ]:1: '-c' not found |
osh_.cc | 9 shift is fatal at top level? [osh_.cc stdout] Expected 'hello\n', got '' [osh_.cc status] Expected 0, got 127 stdout: stderr: $SH -c 'shift; echo hello' ^~ [ stdin ]:1: '-c' not found |
osh_.py | 11 IFS - http://landley.net/notes.html#05-03-2020 [osh_.py stdout] Expected '=one=\n=abc=\n=d f=\n=ghi=\n---\n=one=\n==\n=two=\n', got '=one=\n=abc=\n=d f=\n=ghi=\n---\n' [osh_.py status] Expected 0, got 127 stdout: =one= =abc= =d f= =ghi= ---stderr: func() { $SH -c 'IFS=x; for i in $@; do echo =$i=; done' blah "$@"; } ^~ [ stdin ]:5: '-c' not found |
osh_.cc | 11 IFS - http://landley.net/notes.html#05-03-2020 [osh_.cc stdout] Expected '=one=\n=abc=\n=d f=\n=ghi=\n---\n=one=\n==\n=two=\n', got '=one=\n=abc=\n=d f=\n=ghi=\n---\n' [osh_.cc status] Expected 0, got 127 stdout: =one= =abc= =d f= =ghi= ---stderr: func() { $SH -c 'IFS=x; for i in $@; do echo =$i=; done' blah "$@"; } ^~ [ stdin ]:5: '-c' not found |
osh_.py | 12 for loop parsing - http://landley.net/notes.html#04-03-2020 [osh_.py stdout] Expected 'one\ntwo\nthree\n0\ncannot-parse\n', got '127\ncannot-parse\n' stdout: 127 cannot-parsestderr: $SH -c ' ^~ [ stdin ]:1: '-c' not found $SH -c 'for i; in one two three; do echo $i; done' ^~ [ stdin ]:8: '-c' not found |
osh_.cc | 12 for loop parsing - http://landley.net/notes.html#04-03-2020 [osh_.cc stdout] Expected 'one\ntwo\nthree\n0\ncannot-parse\n', got '127\ncannot-parse\n' stdout: 127 cannot-parsestderr: $SH -c ' ^~ [ stdin ]:1: '-c' not found $SH -c 'for i; in one two three; do echo $i; done' ^~ [ stdin ]:8: '-c' not found |
osh | 14 IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh) [osh stdout] Expected '==\n=abc=\n==\n==\n=abc=\n=def=\n==\n', got '==\n=abc=\n==\n=abc=\n=def=\n' stdout: == =abc= == =abc= =def=stderr: |
osh_.py | 14 IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh) [osh_.py stdout] Expected '==\n=abc=\n==\n==\n=abc=\n=def=\n==\n', got '==\n=abc=\n==\n=abc=\n=def=\n' stdout: == =abc= == =abc= =def=stderr: |
osh_.cc | 14 IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh) [osh_.cc stdout] Expected '==\n=abc=\n==\n==\n=abc=\n=def=\n==\n', got '==\n=abc=\n==\n=abc=\n=def=\n' stdout: == =abc= == =abc= =def=stderr: |
osh | 15 IFS 2 (TODO: osh) [osh stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '=x=\n=abc=\n=def=\n' stdout: =x= =abc= =def=stderr: this one appears different between osh and bash ^~~~ [ stdin ]:1: 'this' not found |
osh_.py | 15 IFS 2 (TODO: osh) [osh_.py stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '=x=\n=abc=\n=def=\n' stdout: =x= =abc= =def=stderr: this one appears different between osh and bash ^~~~ [ stdin ]:1: 'this' not found |
osh_.cc | 15 IFS 2 (TODO: osh) [osh_.cc stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '=x=\n=abc=\n=def=\n' stdout: =x= =abc= =def=stderr: this one appears different between osh and bash ^~~~ [ stdin ]:1: 'this' not found |
osh_.py | 19 Can't parse extra } [osh_.py status] Expected 2, got 127 stdout: stderr: $SH -c 'for i in a"$@"b;do echo =$i=;done;}' 123 456 789 ^~ [ stdin ]:1: '-c' not found |
osh_.cc | 19 Can't parse extra } [osh_.cc status] Expected 2, got 127 stdout: stderr: $SH -c 'for i in a"$@"b;do echo =$i=;done;}' 123 456 789 ^~ [ stdin ]:1: '-c' not found |
osh_.cc | 21 Pipeline - http://landley.net/notes-2019.html#16-12-2019 [osh_.cc stdout] Expected 'hello\n-@hello@-\n', got '' [osh_.cc status] Expected 0, got -6 stdout: stderr: osh_eval.dbg: cpp/posix.h:106: Tuple2<int, int> posix::pipe(): Assertion `0' failed. |