spec test index / oilshell.org
141 passed, 9 ok, 16 known unimplemented, 2 known bugs, 5 failed, 0 skipped
bash | 0 $- with -c stdout: huBcstderr: |
mksh | 0 $- with -c stdout: uhcstderr: |
osh-byterun | 0 $- with -c [osh-byterun stdout] Expected 'u\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 1 $- with pipefail stdout: stderr: _tmp/spec-bin/dash: 1: set: Illegal option -o pipefail |
bash | 1 $- with pipefail stdout: huBsstderr: |
mksh | 1 $- with pipefail stdout: ushstderr: |
osh-byterun | 1 $- with pipefail [osh-byterun stdout] Expected 'u\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 2 $- with interactive shell [osh-byterun stdout] Expected 'FALSE\nTRUE\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 3 sh -c [osh-byterun stdout] Expected 'hi\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 4 empty -c input [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 5 empty stdin [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 6 args are passed [osh-byterun stdout] Expected "['a', 'b']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 7 args that look like flags are passed after script [osh-byterun stdout] Expected "['--help', '--help', '-h']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 8 args that look like flags are passed after -c [osh-byterun stdout] Expected "['--help', '-h']\n", got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 11 can continue after unknown option stdout: stderr: _tmp/spec-bin/dash: 2: set: Illegal option -o STRICT |
mksh | 11 can continue after unknown option stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: set: STRICT: bad option |
osh-byterun | 11 can continue after unknown option [osh-byterun stdout] Expected 'hello\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 12 set with both options and argv [osh-byterun stdout] Expected 'a b c\n', got '' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 13 set -o vi/emacs [osh-byterun stdout] Expected '0\n0\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 14 nounset stdout: []stderr: _tmp/spec-bin/dash: 3: unset: parameter not set |
osh-byterun | 14 nounset [osh-byterun stdout] Expected '[]\n', got '' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 15 -u is nounset stdout: []stderr: _tmp/spec-bin/dash: 3: unset: parameter not set |
osh-byterun | 15 -u is nounset [osh-byterun stdout] Expected '[]\n', got '' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 16 nounset with "$@" [osh-byterun stdout] Expected 'a b c\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 17 set -u -- clears argv [osh-byterun stdout] Expected '\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 18 set -u -- x y z [osh-byterun stdout] Expected 'x y z\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 19 reset option with long flag [osh-byterun stdout] Expected '[]\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 20 reset option with short flag [osh-byterun stdout] Expected '[]\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 21 set -eu (flag parsing) stdout: stderr: _tmp/spec-bin/dash: 2: unset: parameter not set |
osh | 22 -n for no execution (useful with --ast-output) [osh stdout] Expected u'1\n', got '1\n2\n3\n' stdout: 1 2 3stderr: |
osh_ALT | 22 -n for no execution (useful with --ast-output) [osh_ALT stdout] Expected u'1\n', got '1\n2\n3\n' stdout: 1 2 3stderr: |
osh-byterun | 22 -n for no execution (useful with --ast-output) [osh-byterun stdout] Expected u'1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 23 pipefail stdout: 0stderr: _tmp/spec-bin/dash: 3: set: Illegal option -o pipefail |
osh-byterun | 23 pipefail [osh-byterun stdout] Expected u'0\n2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 24 shopt -p -o stdout: stderr: _tmp/spec-bin/dash: 1: shopt: not found _tmp/spec-bin/dash: 3: shopt: not found |
mksh | 24 shopt -p -o stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[3]: shopt: not found |
osh-byterun | 24 shopt -p -o [osh-byterun stdout] Expected u'set +o nounset\nset -o nounset\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 25 shopt -p stdout: stderr: _tmp/spec-bin/dash: 1: shopt: not found _tmp/spec-bin/dash: 2: shopt: not found _tmp/spec-bin/dash: 3: shopt: not found |
mksh | 25 shopt -p stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[2]: shopt: not found _tmp/spec-bin/mksh: <stdin>[3]: shopt: not found |
osh-byterun | 25 shopt -p [osh-byterun stdout] Expected u'shopt -u nullglob\nshopt -s nullglob\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 26 noclobber off [osh-byterun stdout] Expected 'foo\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 27 noclobber on stdout: 0 2stderr: _tmp/spec-bin/dash: 5: cannot create /home/andy/git/oilshell/oil/_tmp/spec-tmp/sh-options.test.sh/no-clobber: File exists |
osh | 27 noclobber on [osh stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: |
osh_ALT | 27 noclobber on [osh_ALT stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: |
osh-byterun | 27 noclobber on [osh-byterun stdout] Expected u'0\n1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 28 SHELLOPTS is updated when options are changed stdout: 1 1 1stderr: + echo + grep -q xtrace + echo 1 + set +x |
mksh | 28 SHELLOPTS is updated when options are changed stdout: 1 1 1stderr: + grep -q xtrace + echo + echo 1 + set +x |
osh-byterun | 28 SHELLOPTS is updated when options are changed [osh-byterun stdout] Expected u'1\n0\n1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 29 SHELLOPTS is readonly stdout: status=0stderr: |
mksh | 29 SHELLOPTS is readonly stdout: status=0stderr: |
osh | 29 SHELLOPTS is readonly [osh stdout] Expected 'status=1\n', got '' [osh status] Expected 0, got 1 stdout: stderr: *** Error has no source location info *** fatal: Can't assign to readonly value 'SHELLOPTS' |
osh_ALT | 29 SHELLOPTS is readonly [osh_ALT stdout] Expected 'status=1\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: *** Error has no source location info *** fatal: Can't assign to readonly value 'SHELLOPTS' |
osh-byterun | 29 SHELLOPTS is readonly [osh-byterun stdout] Expected 'status=1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 30 set -o lists options [osh status] Expected 0, got 1 stdout: stderr: osh 'set' usage error: Expected argument for option |
osh_ALT | 30 set -o lists options [osh_ALT status] Expected 0, got 1 stdout: stderr: osh 'set' usage error: Expected argument for option |
osh-byterun | 30 set -o lists options [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 31 set without args lists variables [osh status] Expected 0, got 1 stdout: stderr: |
osh_ALT | 31 set without args lists variables [osh_ALT status] Expected 0, got 1 stdout: stderr: |
osh-byterun | 31 set without args lists variables [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 32 shopt -q stdout: nullglob=127 nullglob=127 nullglob,failglob=127 nullglob,failglob=127stderr: _tmp/spec-bin/dash: 1: shopt: not found _tmp/spec-bin/dash: 3: shopt: not found _tmp/spec-bin/dash: 4: shopt: not found _tmp/spec-bin/dash: 6: shopt: not found _tmp/spec-bin/dash: 8: shopt: not found _tmp/spec-bin/dash: 9: shopt: not found |
mksh | 32 shopt -q stdout: nullglob=127 nullglob=127 nullglob,failglob=127 nullglob,failglob=127stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[3]: shopt: not found _tmp/spec-bin/mksh: <stdin>[4]: shopt: not found _tmp/spec-bin/mksh: <stdin>[6]: shopt: not found _tmp/spec-bin/mksh: <stdin>[8]: shopt: not found _tmp/spec-bin/mksh: <stdin>[9]: shopt: not found |
osh-byterun | 32 shopt -q [osh-byterun stdout] Expected 'nullglob=1\nnullglob=0\nnullglob,failglob=1\nnullglob,failglob=0\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 33 shopt -q invalid stdout: invalidZZ=127stderr: _tmp/spec-bin/dash: 1: shopt: not found |
bash | 33 shopt -q invalid stdout: invalidZZ=1stderr: _tmp/spec-bin/bash: line 1: shopt: invalidZZ: invalid shell option name |
mksh | 33 shopt -q invalid stdout: invalidZZ=127stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
osh-byterun | 33 shopt -q invalid [osh-byterun stdout] Expected 'invalidZZ=2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 34 sh -i loads rcfile (when combined with -c) stdout: 1stderr: _tmp/spec-bin/dash: 0: Illegal option -- |
mksh | 34 sh -i loads rcfile (when combined with -c) stdout: 1stderr: _tmp/spec-bin/mksh: _tmp/spec-bin/mksh: --: unknown option |
osh-byterun | 34 sh -i loads rcfile (when combined with -c) [osh-byterun stdout] Expected '1\nRCFILE\n2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |