spec test index / oilshell.org
status | bash | osh | |
pass | 6 | 4 | |
ok | 0 | 1 | |
FAIL | 0 | 1 | |
total | 6 | 6 | |
case | bash | osh | description |
0 | pass | pass | var ref to array 'preHooks[@]' |
1 | pass | pass | Similar to above with set -u |
2 | pass | FAIL | ${!ref} to undefined array |
details | |||
3 | pass | pass | ${!ref} to undefined string var is fatal, INCONSISTENT with array |
4 | pass | ok | export with dynamic var name += |
details | |||
5 | pass | pass | let idiom can be written in POSIX shell - eval ": \$(( ))" |
10 passed, 1 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 2 ${!ref} to undefined array [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 198, 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 1125, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 364, in Batch is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 1955, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1777, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1674, in _Dispatch status = self._DoForEach(node) File "/home/uke/oil/osh/cmd_eval.py", line 1212, in _DoForEach assert iter_list, iter_list AssertionError: [] |
osh | 4 export with dynamic var name += stdout: declare -x NIX_LDFLAGS_foo=' -Lone/lib64'stderr: |