Results for ysh-options.test.sh

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

Details on runs that didn't PASS

osh0 simple_word_eval doesn't split, glob, or elide empty

[osh stdout] Expected "['a', 'b', 'bar.z', 'foo.z', 'spam.z', 'spam.z']\n['-x y', 'z-']\n['a b', '*.z', '', 'spam.z']\n['-x y', 'z-']\n" Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh1 simple_word_eval and strict_array conflict over globs

[osh stdout] Expected "['foo.txt']\n['foo.txt']\n", got ''
[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh2 simple_word_eval and glob

[osh stdout] Expected '1.ff\n2.ff\n1.ff 2.ff\n1.ff 2.ff\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh3 parse_at

[osh stdout] Expected "['@words']\n['a', 'b c']\n", got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh4 parse_at can't be used outside top level

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh5 sourcing a file that sets parse_at

[osh stdout] Expected "['@words']\nlib.sh\nmain.sh\n['a', 'b c']\n", got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh6 parse_at can be specified through sh -O

[osh stdout] Expected "['@words']\n['a', 'b c']\n", got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh7 @a splices into $0

[osh stdout] Expected 'hi\nhi\nhi\nhi\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh8 shopt -s strict:all

[osh stdout] Expected 'shopt -s strict_argv\nshopt -s strict_arith\nshopt -s strict_array\nshopt -s strict_control_flow\nshopt -s strict_errexit\nshopt -s strict_glob\nshopt -s strict_nameref\nshopt -s strict_parse_slice\nshopt -s strict_tilde\nshopt -s strict_word_eval\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh9 shopt -s ysh:upgrade

[osh stdout] Expected 'set -o errexit\nset -o nounset\nset -o pipefail\nshopt -s command_sub_errexit\nshopt -u dashglob\nshopt -s env_obj\nshopt -s errexit\nshopt -s inherit_errexit\nshopt -s nounset\nshopt -s nullglob\nshopt -s parse_at\nshopt -s parse_brace\nshopt -s parse_bracket\nshopt -s parse_equals\nshopt -s parse_func\nshopt -s parse_paren\nshopt -s parse_proc\nshopt -s parse_triple_quote\nshopt -s parse_ysh_string\nshopt -s pipefail\nshopt -s process_sub_fail\nshopt -s sigpipe_status_ok\nshopt -s simple_word_eval\nshopt -s verbose_errexit\nshopt -u xtrace_details\nshopt -s xtrace_rich\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh10 osh -O oil:upgrade

[osh stdout] Expected 'one\ntwo\nthree\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh11 osh -O errexit: use -O everywhere, even for Bourne options

[osh stdout] Expected 'set -o errexit\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh12 osh -O invalid

[osh stdout] Expected 'hi\nstatus=0\nstatus=2\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh13 osh -o new_option is also accepted

[osh stdout] Expected 'nullglob\n0 flag nullglob\nupgrade\n0 flag oil:upgrade\n2 set builtin nullglob\n2 set builtin oil:upgrade\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh15 parse_brace: bad block to assignment builtin

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh16 parse_brace: bad block to external program

[osh stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh17 parse_brace: cd { } in pipeline

[osh stdout] Expected '/TMP\n/TMP\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh18 parse_brace: if accepts blocks

[osh stdout] Expected 'one\ntwo\nthree\nelse\nelif\none line\n1\n2\nsh syntax\n1\n2\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh19 parse_brace: brace group in if condition

[osh stdout] Expected 'one\ntwo\nthree\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh20 parse_brace: while/until

[osh stdout] Expected 'one\ntwo\nsh syntax\nthree\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh21 parse_brace: for-in loop

[osh stdout] Expected 'one\ntwo\nthree\nsh syntax\nfour\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh22 parse_brace case

[osh stdout] Expected 'python\nshell\npython\nshell\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh23 parse_paren: if statement

[osh stdout] Expected 'less\nless\nother\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh24 parse_paren: while statement

[osh stdout] Expected '1\n2\ndone ksh\n1\n2\ndone sh\n1\n2\ndone oil\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh25 while subshell without parse_paren

[osh stdout] Expected 'one\ntwo\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh26 nullglob is on with oil:upgrade

[osh stdout] Expected 'one\n*.zzz\ntwo\n__\none\ntwo\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh27 nullglob is on with oil:all

[osh stdout] Expected 'one\n*.zzz\ntwo\n__\none\ntwo\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh28 shopt -s simple_echo

[osh stdout] Expected 'one two\n\none two\none two\n-e one two\n-n one two\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh29 shopt -s dashglob

[osh stdout] Expected "['-v', 'file']\n['file']\n['-v', 'file']\n", got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh30 shopt -s oil:upgrade turns some options on and others off

[osh stdout] Expected 'shopt -s dashglob\nshopt -u simple_word_eval\n---\nshopt -s dashglob\nshopt -s simple_word_eval\n---\nshopt -u dashglob\nshopt -s simple_word_eval\n---\nshopt -s dashglob\nshopt -u simple_word_eval\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh31 sigpipe_status_ok

[osh stdout] Expected 'y\n141 0\n141 141\ny\n0 0\n0 141\nbackground\nstatus=0 pipestatus=0 141\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh32 printf | head regression (sigpipe_status_ok)

[osh stdout] Expected ' external on 0 0\n external off 141 0\n builtin on 0 0\n builtin off 141 0\nfinished\n' Got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh33 redefine_proc is on in interactive shell

[osh stdout] Expected 'common\nredefinition\n', got ''
[osh stderr] Expected 'hi\n', got 'Traceback (most recent call last):\n File "/home/uke/oil/bin/oils_for_unix.py", line 20, in <module>\n import posix_ as posix\nImportError: No module named posix_\n'
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh34 redefine_source is on in interactive shell

[osh stdout] Expected 'common\ncommon\nstatus=0\n2 stderr.txt\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh35 parse options in sourced file (bug #1628)

[osh stdout] Expected 'OK\nalias on\nOK\n', got ''
[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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh36 expand_aliases turned off only in ysh:all

[osh stdout] Expected 'normal\nupgrade\n', got ''
[osh status] Expected 127, 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_
osh37 [[ isn't allowed in ysh

[osh stdout] Expected 'status=0\nstatus=0\n', got ''
[osh status] Expected 2, 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 20, in <module>
    import posix_ as posix
ImportError: No module named posix_