Results for toysh-posix.test.sh

statusoshosh-cpp
pass 1919
ok 22
FAIL 22
total2323
caseoshosh-cppdescription
0pass pass Fatal error
1ok ok setting readonly var (bash is only one where it's non-fatal)
detailsdetails
2ok ok readonly with temp binding
detailsdetails
3pass pass Failed redirect in assignment, vs. export
4pass pass Evaluation order of redirect and ${undef?error}
5pass pass Function def in pipeline
6pass pass dynamic glob - http://landley.net/notes.html#08-05-2020
7pass pass no shebang
8pass pass IFS
9pass pass shift is fatal at top level?
10pass pass var and func - http://landley.net/notes.html#19-03-2020
11FAIL FAIL IFS - http://landley.net/notes.html#05-03-2020
detailsdetails
12FAIL FAIL IFS=x and '' and unquoted $@ - reduction of case above - copied into spec/word-split
detailsdetails
13pass pass for loop parsing - http://landley.net/notes.html#04-03-2020
14pass pass Parsing $(( ))
15pass pass IFS - http://landley.net/notes.html#15-02-2020 (TODO: osh)
16pass pass IFS 2 - copied into spec/word-split
17pass pass IFS 3
18pass pass IFS 4
19pass pass IFS 5
20pass pass Can't parse extra }
21pass pass Command Sub Syntax Error
22pass pass Pipeline - http://landley.net/notes-2019.html#16-12-2019
38 passed, 4 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 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-cpp1 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 ]:5: Can't open '/does/not/exist': No such file or directory
[ stdin ]:5: I/O error applying redirect: No such file or directory
osh-cpp2 readonly with temp binding

stdout:
one
status=0
hello
stderr:
  echo potato < /does/not/exist || echo hello
              ^
[ stdin ]:5: Can't open '/does/not/exist': No such file or directory
[ stdin ]:5: I/O error applying redirect: No such file or directory
osh11 IFS - http://landley.net/notes.html#05-03-2020

[osh 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=one=\n=two=\n'

stdout:
=one=
=abc=
=d f=
=ghi=
---
=one=
=two=
stderr:
osh-cpp11 IFS - http://landley.net/notes.html#05-03-2020

[osh-cpp 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=one=\n=two=\n'

stdout:
=one=
=abc=
=d f=
=ghi=
---
=one=
=two=
stderr:
osh12 IFS=x and '' and unquoted $@ - reduction of case above - copied into spec/word-split

[osh stdout] Expected "['one', '', 'two']\n-one-\n--\n-two-\n" Got "['one', 'two']\n-one-\n-two-\n"

stdout:
['one', 'two']
-one-
-two-
stderr:
  setopt SH_WORD_SPLIT
  ^~~~~~
[ stdin ]:1: Command 'setopt' not found (OILS-ERR-100)
osh-cpp12 IFS=x and '' and unquoted $@ - reduction of case above - copied into spec/word-split

[osh-cpp stdout] Expected "['one', '', 'two']\n-one-\n--\n-two-\n" Got "['one', 'two']\n-one-\n-two-\n"

stdout:
['one', 'two']
-one-
-two-
stderr:
  setopt SH_WORD_SPLIT
  ^~~~~~
[ stdin ]:1: Command 'setopt' not found (OILS-ERR-100)