Results for nix-idioms.test.sh

statusoshosh-cpp
pass 45
ok 11
FAIL 10
total66
caseoshosh-cppdescription
0pass pass var ref to array 'preHooks[@]'
1pass pass Similar to above with set -u
2FAIL pass ${!ref} to undefined array
details
3pass pass ${!ref} to undefined string var is fatal, INCONSISTENT with array
4ok ok export with dynamic var name +=
detailsdetails
5pass pass let idiom can be written in POSIX shell - eval ": \$(( ))"
9 passed, 2 OK, 0 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

osh2 ${!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: []
osh4 export with dynamic var name +=

stdout:
declare -x NIX_LDFLAGS_foo=' -Lone/lib64'
stderr:
osh-cpp4 export with dynamic var name +=

stdout:
declare -x NIX_LDFLAGS_foo=' -Lone/lib64'
stderr: