spec test index / oilshell.org
88 passed, 3 OK, 3 not implemented, 0 BUG, 8 failed, 0 timeouts, 0 cases skipped
osh | 2 indexed LHS with spaces (not allowed in OSH) stdout: status=127 []stderr: a[1 * 1]=x a[ 1 + 2 ]=z ^~ [ stdin ]:1: 'a[1' not found |
osh_.py | 2 indexed LHS with spaces (not allowed in OSH) stdout: status=127 []stderr: a[1 * 1]=x a[ 1 + 2 ]=z ^~ [ stdin ]:1: 'a[1' not found |
osh_.cc | 2 indexed LHS with spaces (not allowed in OSH) stdout: status=127 []stderr: a[1 * 1]=x a[ 1 + 2 ]=z ^~ [ stdin ]:1: 'a[1' not found |
osh_.cc | 3 declare -f exit code indicates function existence [osh_.cc stdout] Expected '1\n1\n0\n', got '1\nmyfunc\n1\nmyfunc\nfunc2\n0\n' stdout: 1 myfunc 1 myfunc func2 0stderr: |
osh_.cc | 5 declare -p var (exit status) [osh_.cc stdout] Expected '1\n1\n0\n', got '1\ndeclare -- var1=x\n1\ndeclare -- var1=x\ndeclare -- var2=y\n0\n' stdout: 1 declare -- var1=x 1 declare -- var1=x declare -- var2=y 0stderr: |
osh_.cc | 10 declare -p foo=bar doesn't make sense [osh_.cc stdout] Expected 'status=1\nstatus=1\ndeclare -- a=b\n', got 'status=1\ndeclare -- a=b\nstatus=1\n' stdout: status=1 declare -- a=b status=1stderr: |
osh_.cc | 18 typeset -f [osh_.cc stdout] Expected '1\n1\n0\n', got '1\nmyfunc\n1\nmyfunc\nfunc2\n0\n' stdout: 1 myfunc 1 myfunc func2 0stderr: |
osh_.cc | 19 typeset -p [osh_.cc stdout] Expected '1\n1\n0\n', got '1\ndeclare -- var1=x\n1\ndeclare -- var1=x\ndeclare -- var2=y\n0\n' stdout: 1 declare -- var1=x 1 declare -- var1=x declare -- var2=y 0stderr: |
osh_.cc | 22 typeset -x makes it exported [osh_.cc stdout] Expected 'lib/\n', got 'None\n' stdout: Nonestderr: |
osh | 27 myvar=typeset (another form of dynamic assignment) stdout: a bstderr: |
osh_.py | 27 myvar=typeset (another form of dynamic assignment) stdout: a bstderr: |
osh_.cc | 27 myvar=typeset (another form of dynamic assignment) stdout: a bstderr: |
osh_.cc | 29 dynamic flag in array in assign builtin [osh_.cc stdout] Expected 'foo=F\nbar=B\nF\nB\n', got 'foo=F\nbar=B\nNone\nNone\n' stdout: foo=F bar=B None Nonestderr: |
osh_.cc | 30 typeset +x [osh_.cc stdout] Expected 'E\nNone\n', got 'None\nNone\n' stdout: None Nonestderr: |