Results for ysh-options.test.sh

statusosh
pass 36
FAIL 2
total38
caseoshdescription
0pass simple_word_eval doesn't split, glob, or elide empty
1pass simple_word_eval and strict_array conflict over globs
2pass simple_word_eval and glob
3pass parse_at
4FAIL DISABLED: parse_at can't be used outside top level
details
5pass sourcing a file that sets parse_at
6pass parse_at can be specified through sh -O
7pass @a splices into $0
8pass shopt -s strict:all
9pass shopt -s ysh:upgrade
10pass osh -O oil:upgrade
11pass osh -O errexit: use -O everywhere, even for Bourne options
12pass osh -O invalid
13pass osh -o new_option is also accepted
14FAIL oil:upgrade includes inherit_errexit
details
15pass parse_brace: bad block to assignment builtin
16pass parse_brace: bad block to external program
17pass parse_brace: cd { } in pipeline
18pass parse_brace: if accepts blocks
19pass parse_brace: brace group in if condition
20pass parse_brace: while/until
21pass parse_brace: for-in loop
22pass parse_brace case
23pass parse_paren: if statement
24pass parse_paren: while statement
25pass while subshell without parse_paren
26pass nullglob is on with oil:upgrade
27pass nullglob is on with oil:all
28pass shopt -s simple_echo
29pass shopt -s dashglob
30pass shopt -s oil:upgrade turns some options on and others off
31pass sigpipe_status_ok
32pass printf | head regression (sigpipe_status_ok)
33pass redefine_proc is on in interactive shell
34pass redefine_source is on in interactive shell
35pass parse options in sourced file (bug #1628)
36pass expand_aliases turned off only in ysh:all
37pass [[ isn't allowed in ysh
36 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh4 DISABLED: parse_at can't be used outside top level

[osh stdout] Expected u'', got 'status=0\nshould not get here\n'
[osh status] Expected 1, got 0

stdout:
status=0
should not get here
stderr:
osh14 oil:upgrade includes inherit_errexit

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 202, in <module>
    sys.exit(main(sys.argv))
  File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main
    return AppBundleMain(argv)
  File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain
    return shell.Main('osh', arg_r, environ, login_shell, loader, readline)
  File "/home/uke/oil/core/shell.py", line 1253, in Main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/uke/oil/core/main_loop.py", line 336, in Batch
    was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags)
  File "/home/uke/oil/core/main_loop.py", line 401, in Batch2
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags)
  File "/home/uke/oil/osh/cmd_eval.py", line 2175, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/uke/oil/osh/cmd_eval.py", line 1974, in _Execute
    status = self._Dispatch(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 1701, in _Dispatch
    status = self._DoSimple(node, cmd_st)
  File "/home/uke/oil/osh/cmd_eval.py", line 904, in _DoSimple
    allow_assign=True)
  File "/home/uke/oil/osh/word_eval.py", line 2494, in EvalWordSequence2
    allow_assign)
  File "/home/uke/oil/osh/word_eval.py", line 2455, in SimpleEvalWordSequence2
    self._EvalWordToParts(w, part_vals, 0)  # not quoted
  File "/home/uke/oil/osh/word_eval.py", line 1989, in _EvalWordToParts
    self._EvalWordPart(p, word_part_vals, eval_flags)
  File "/home/uke/oil/osh/word_eval.py", line 1881, in _EvalWordPart
    quoted)  # type: part_value_t
  File "/home/uke/oil/osh/word_eval.py", line 2629, in _EvalCommandSub
    stdout_str = self.shell_ex.RunCommandSub(cs_part)
  File "/home/uke/oil/core/executor.py", line 691, in RunCommandSub
    status, stdout_str, stderr_str = self.CaptureStdout(node)
  File "/home/uke/oil/core/executor.py", line 619, in CaptureStdout
    fds, w, exc = select.select([r,r2], [], [r,r2], -1)
NameError: global name 'select' is not defined