Results for toysh-posix.test.sh

statusoshosh_.pyosh_.cc
pass 1777
ok 211
FAIL 31414
total222222
caseoshosh_.pyosh_.ccdescription
0pass pass pass Fatal error
1ok ok ok setting readonly var (bash is only one where it's non-fatal)
detailsdetailsdetails
2ok FAIL FAIL readonly with temp binding
detailsdetailsdetails
3pass FAIL FAIL Failed redirect in assignment, vs. export
detailsdetails
4FAIL FAIL FAIL Evaluation order of redirect and ${undef?error}
detailsdetailsdetails
5pass FAIL FAIL Function def in pipeline
detailsdetails
6pass FAIL FAIL dynamic glob - http://landley.net/notes.html#08-05-2020
detailsdetails
7pass FAIL FAIL no shebang
detailsdetails
8pass pass pass IFS
9pass FAIL FAIL shift is fatal at top level?
detailsdetails
10pass pass pass var and func - http://landley.net/notes.html#19-03-2020
11pass FAIL FAIL IFS - http://landley.net/notes.html#05-03-2020
detailsdetails
12pass FAIL FAIL for loop parsing - http://landley.net/notes.html#04-03-2020
detailsdetails
13pass FAIL FAIL Parsing $(( ))
detailsdetails
14FAIL FAIL FAIL IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh)
detailsdetailsdetails
15FAIL FAIL FAIL IFS 2 (TODO: osh)
detailsdetailsdetails
16pass pass pass IFS 3
17pass pass pass IFS 4
18pass pass pass IFS 5
19pass FAIL FAIL Can't parse extra }
detailsdetails
20pass pass pass Command Sub Syntax Error
21pass FAIL FAIL Pipeline - http://landley.net/notes-2019.html#16-12-2019
detailsdetails
31 passed, 4 OK, 0 not implemented, 0 BUG, 31 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh1 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_.py1 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_.cc1 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'
osh2 readonly with temp binding

stdout:
one
status=0
hello
stderr:
  echo potato < /does/not/exist || echo hello
              ^
[ stdin ]:4: Can't open '/does/not/exist': No such file or directory
osh_.py2 readonly with temp binding

[osh_.py stdout] Expected 'one\nstatus=0\nhello\n', got 'one\nstatus=0\npotato\n'

stdout:
one
status=0
potato
stderr:
osh_.cc2 readonly with temp binding

[osh_.cc stdout] Expected 'one\nstatus=0\nhello\n', got 'one\nstatus=0\npotato\n'

stdout:
one
status=0
potato
stderr:
osh_.py3 Failed redirect in assignment, vs. export

[osh_.py stdout] Expected 'abc=\nabc=\n', got 'abc=def\nabc=def\n'

stdout:
abc=def
abc=def
stderr:
osh_.cc3 Failed redirect in assignment, vs. export

[osh_.cc stdout] Expected 'abc=\nabc=\n', got 'abc=def\nabc=def\n'

stdout:
abc=def
abc=def
stderr:
osh4 Evaluation order of redirect and ${undef?error}

[osh stdout] Expected 'exists1\n', got 'exists1\nexists2\n'

stdout:
exists1
exists2
stderr:
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_.py4 Evaluation order of redirect and ${undef?error}

[osh_.py stdout] Expected 'exists1\n', got "(cmd_value.Argv argv:[rm _tmp walrus] arg_spids:[0 2 2])\n(cmd_value.Argv argv:[rm -f walrus] arg_spids:[4 6 8])\n(cmd_value.Argv argv:[-c 'X=${x?bc} > walrus'] arg_spids:[12 14])\nexists1\n(cmd_value.Argv argv:[rm -f walrus] arg_spids:[38 40 42])\n(cmd_value.Argv argv:[-c '>walrus echo ${a?bc}'] arg_spids:[46 48])\nexists2\n"

stdout:
(cmd_value.Argv argv:[rm _tmp walrus] arg_spids:[0 2 2])
(cmd_value.Argv argv:[rm -f walrus] arg_spids:[4 6 8])
(cmd_value.Argv argv:[-c 'X=${x?bc} > walrus'] arg_spids:[12 14])
exists1
(cmd_value.Argv argv:[rm -f walrus] arg_spids:[38 40 42])
(cmd_value.Argv argv:[-c '>walrus echo ${a?bc}'] arg_spids:[46 48])
exists2
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc4 Evaluation order of redirect and ${undef?error}

[osh_.cc stdout] Expected 'exists1\n', got "(cmd_value.Argv argv:[rm _tmp walrus] arg_spids:[0 2 2])\n(cmd_value.Argv argv:[rm -f walrus] arg_spids:[4 6 8])\n(cmd_value.Argv argv:[-c 'X=${x?bc} > walrus'] arg_spids:[12 14])\n"
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[rm _tmp walrus] arg_spids:[0 2 2])
(cmd_value.Argv argv:[rm -f walrus] arg_spids:[4 6 8])
(cmd_value.Argv argv:[-c 'X=${x?bc} > walrus'] arg_spids:[12 14])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_eval.dbg: cpp/osh_bool_stat.h:37: bool bool_stat::DoUnaryOp(id_kind_asdl::Id_t, Str *): Assertion `0' failed.
osh_.py5 Function def in pipeline

[osh_.py stdout] Expected 'ha\n', got ''

stdout:
stderr: 
osh_.cc5 Function def in pipeline

[osh_.cc stdout] Expected 'ha\n', got ''

stdout:
stderr: 
osh_.py6 dynamic glob - http://landley.net/notes.html#08-05-2020

[osh_.py stdout] Expected '_tmp\n**.?z\n', got '(cmd_value.Argv argv:[rm _tmp] arg_spids:[0 2])\n_tmp\n**.?z\n'

stdout:
(cmd_value.Argv argv:[rm _tmp] arg_spids:[0 2])
_tmp
**.?z
stderr:
Unhandled SimpleCommand
osh_.cc6 dynamic glob - http://landley.net/notes.html#08-05-2020

[osh_.cc stdout] Expected '_tmp\n**.?z\n', got '(cmd_value.Argv argv:[rm _tmp] arg_spids:[0 2])\n_tmp\n**.?z\n'

stdout:
(cmd_value.Argv argv:[rm _tmp] arg_spids:[0 2])
_tmp
**.?z
stderr:
Unhandled SimpleCommand
osh_.py7 no shebang

[osh_.py stdout] Expected 'hello\nhello\nhello 123\n', got "(cmd_value.Argv argv:[rm _tmp snork] arg_spids:[0 2 2])\n(cmd_value.Argv argv:[cat] arg_spids:[4])\n(cmd_value.Argv argv:[chmod '+x' snork] arg_spids:[18 20 23])\n(cmd_value.Argv argv:[-c 'BLAH=123; ./snork'] arg_spids:[27 29])\n(cmd_value.Argv argv:[-c 'BLAH=123; exec ./snork'] arg_spids:[35 37])\n(cmd_value.Argv argv:[-c 'BLAH=123 exec ./snork'] arg_spids:[43 45])\n"

stdout:
(cmd_value.Argv argv:[rm _tmp snork] arg_spids:[0 2 2])
(cmd_value.Argv argv:[cat] arg_spids:[4])
(cmd_value.Argv argv:[chmod '+x' snork] arg_spids:[18 20 23])
(cmd_value.Argv argv:[-c 'BLAH=123; ./snork'] arg_spids:[27 29])
(cmd_value.Argv argv:[-c 'BLAH=123; exec ./snork'] arg_spids:[35 37])
(cmd_value.Argv argv:[-c 'BLAH=123 exec ./snork'] arg_spids:[43 45])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc7 no shebang

[osh_.cc stdout] Expected 'hello\nhello\nhello 123\n', got "(cmd_value.Argv argv:[rm _tmp snork] arg_spids:[0 2 2])\n(cmd_value.Argv argv:[cat] arg_spids:[4])\n(cmd_value.Argv argv:[chmod '+x' snork] arg_spids:[18 20 23])\n(cmd_value.Argv argv:[-c 'BLAH=123; ./snork'] arg_spids:[27 29])\n(cmd_value.Argv argv:[-c 'BLAH=123; exec ./snork'] arg_spids:[35 37])\n(cmd_value.Argv argv:[-c 'BLAH=123 exec ./snork'] arg_spids:[43 45])\n"

stdout:
(cmd_value.Argv argv:[rm _tmp snork] arg_spids:[0 2 2])
(cmd_value.Argv argv:[cat] arg_spids:[4])
(cmd_value.Argv argv:[chmod '+x' snork] arg_spids:[18 20 23])
(cmd_value.Argv argv:[-c 'BLAH=123; ./snork'] arg_spids:[27 29])
(cmd_value.Argv argv:[-c 'BLAH=123; exec ./snork'] arg_spids:[35 37])
(cmd_value.Argv argv:[-c 'BLAH=123 exec ./snork'] arg_spids:[43 45])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py9 shift is fatal at top level?

[osh_.py stdout] Expected 'hello\n', got "(cmd_value.Argv argv:[-c 'shift; echo hello'] arg_spids:[2 4])\n"

stdout:
(cmd_value.Argv argv:[-c 'shift; echo hello'] arg_spids:[2 4])
stderr:
Unhandled SimpleCommand
osh_.cc9 shift is fatal at top level?

[osh_.cc stdout] Expected 'hello\n', got "(cmd_value.Argv argv:[-c 'shift; echo hello'] arg_spids:[2 4])\n"

stdout:
(cmd_value.Argv argv:[-c 'shift; echo hello'] arg_spids:[2 4])
stderr:
Unhandled SimpleCommand
osh_.py11 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(cmd_value.Argv\n argv: [-c 'IFS=x; for i in $@; do echo =$i=; done' blah one '' two]\n arg_spids: [55 57 61 63 63 63]\n)\n"

stdout:
=one=
=abc=
=d f=
=ghi=
---
(cmd_value.Argv
  argv: [-c 'IFS=x; for i in $@; do echo =$i=; done' blah one '' two]
  arg_spids: [55 57 61 63 63 63]
)
stderr:
Unhandled SimpleCommand
osh_.cc11 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(cmd_value.Argv\n argv: [-c 'IFS=x; for i in $@; do echo =$i=; done' blah one '' two]\n arg_spids: [55 57 61 63 63 63]\n)\n"

stdout:
=one=
=abc=
=d f=
=ghi=
---
(cmd_value.Argv
  argv: [-c 'IFS=x; for i in $@; do echo =$i=; done' blah one '' two]
  arg_spids: [55 57 61 63 63 63]
)
stderr:
Unhandled SimpleCommand
osh_.py12 for loop parsing - http://landley.net/notes.html#04-03-2020

[osh_.py stdout] Expected 'one\ntwo\nthree\n0\ncannot-parse\n', got "(cmd_value.Argv argv:[-c '\\nfor i\\nin one two three\\ndo echo $i;\\ndone\\n'] arg_spids:[2 4])\n0\n(cmd_value.Argv argv:[-c 'for i; in one two three; do echo $i; done'] arg_spids:[18 20])\n"
[osh_.py status] Expected 0, got 1

stdout:
(cmd_value.Argv argv:[-c '\nfor i\nin one two three\ndo echo $i;\ndone\n'] arg_spids:[2 4])
0
(cmd_value.Argv argv:[-c 'for i; in one two three; do echo $i; done'] arg_spids:[18 20])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc12 for loop parsing - http://landley.net/notes.html#04-03-2020

[osh_.cc stdout] Expected 'one\ntwo\nthree\n0\ncannot-parse\n', got "(cmd_value.Argv argv:[-c '\\nfor i\\nin one two three\\ndo echo $i;\\ndone\\n'] arg_spids:[2 4])\n0\n(cmd_value.Argv argv:[-c 'for i; in one two three; do echo $i; done'] arg_spids:[18 20])\n"
[osh_.cc status] Expected 0, got 1

stdout:
(cmd_value.Argv argv:[-c '\nfor i\nin one two three\ndo echo $i;\ndone\n'] arg_spids:[2 4])
0
(cmd_value.Argv argv:[-c 'for i; in one two three; do echo $i; done'] arg_spids:[18 20])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py13 Parsing $(( ))

[osh_.py stdout] Expected 'fail\n', got "(cmd_value.Argv argv:[-c 'echo $((echo hello))'] arg_spids:[2 4])\n"

stdout:
(cmd_value.Argv argv:[-c 'echo $((echo hello))'] arg_spids:[2 4])
stderr:
Unhandled SimpleCommand
osh_.cc13 Parsing $(( ))

[osh_.cc stdout] Expected 'fail\n', got "(cmd_value.Argv argv:[-c 'echo $((echo hello))'] arg_spids:[2 4])\n"

stdout:
(cmd_value.Argv argv:[-c 'echo $((echo hello))'] arg_spids:[2 4])
stderr:
Unhandled SimpleCommand
osh14 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_.py14 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_.cc14 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:
osh15 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_.py15 IFS 2 (TODO: osh)

[osh_.py stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '(cmd_value.Argv\n argv: [this one appears different between osh and bash]\n arg_spids: [0 2 4 6 8 10 12 14]\n)\n=x=\n=abc=\n=def=\n'

stdout:
(cmd_value.Argv
  argv: [this one appears different between osh and bash]
  arg_spids: [0 2 4 6 8 10 12 14]
)
=x=
=abc=
=def=
stderr:
Unhandled SimpleCommand
osh_.cc15 IFS 2 (TODO: osh)

[osh_.cc stdout] Expected '=x=\n=abc=\n=def=\n==\n', got '(cmd_value.Argv\n argv: [this one appears different between osh and bash]\n arg_spids: [0 2 4 6 8 10 12 14]\n)\n=x=\n=abc=\n=def=\n'

stdout:
(cmd_value.Argv
  argv: [this one appears different between osh and bash]
  arg_spids: [0 2 4 6 8 10 12 14]
)
=x=
=abc=
=def=
stderr:
Unhandled SimpleCommand
osh_.py19 Can't parse extra }

[osh_.py stdout] Expected '', got '(cmd_value.Argv argv:[-c \'for i in a"$@"b;do echo =$i=;done;}\' 123 456 789] arg_spids:[2 4 8 10 12])\n'
[osh_.py status] Expected 2, got 0

stdout:
(cmd_value.Argv argv:[-c 'for i in a"$@"b;do echo =$i=;done;}' 123 456 789] arg_spids:[2 4 8 10 12])
stderr:
Unhandled SimpleCommand
osh_.cc19 Can't parse extra }

[osh_.cc stdout] Expected '', got '(cmd_value.Argv argv:[-c \'for i in a"$@"b;do echo =$i=;done;}\' 123 456 789] arg_spids:[2 4 8 10 12])\n'
[osh_.cc status] Expected 2, got 0

stdout:
(cmd_value.Argv argv:[-c 'for i in a"$@"b;do echo =$i=;done;}' 123 456 789] arg_spids:[2 4 8 10 12])
stderr:
Unhandled SimpleCommand
osh_.py21 Pipeline - http://landley.net/notes-2019.html#16-12-2019

[osh_.py stdout] Expected 'hello\n-@hello@-\n', got ''

stdout:
stderr: 
osh_.cc21 Pipeline - http://landley.net/notes-2019.html#16-12-2019

[osh_.cc stdout] Expected 'hello\n-@hello@-\n', got ''

stdout:
stderr: