spec test index / oilshell.org
155 passed, 14 ok, 30 known unimplemented, 2 known bugs, 2 failed, 0 skipped
bash | 0 $- with -c stdout: huBcstderr: |
mksh | 0 $- with -c stdout: uhcstderr: |
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: |
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 |
dash | 14 nounset stdout: []stderr: _tmp/spec-bin/dash: 3: unset: parameter not set |
dash | 15 -u is nounset stdout: []stderr: _tmp/spec-bin/dash: 3: unset: parameter not set |
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 '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 '1\n', got '1\n2\n3\n' stdout: 1 2 3stderr: |
dash | 23 pipefail stdout: 0stderr: _tmp/spec-bin/dash: 3: set: Illegal option -o pipefail |
dash | 24 shopt -p -o prints 'set' options stdout: stderr: _tmp/spec-bin/dash: 1: shopt: not found _tmp/spec-bin/dash: 3: shopt: not found |
mksh | 24 shopt -p -o prints 'set' options stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found _tmp/spec-bin/mksh: <stdin>[3]: shopt: not found |
dash | 25 shopt -p prints 'shopt' options 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 prints 'shopt' options 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 |
dash | 26 shopt with no flags prints options stdout: 0 one.txt 0stderr: _tmp/spec-bin/dash: 2: shopt: not found _tmp/spec-bin/dash: 6: shopt: not found |
mksh | 26 shopt with no flags prints options stdout: 0 one.txt 0stderr: _tmp/spec-bin/mksh: <stdin>[2]: shopt: not found _tmp/spec-bin/mksh: <stdin>[6]: shopt: not found |
dash | 28 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 | 28 noclobber on [osh stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: |
osh_ALT | 28 noclobber on [osh_ALT stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: |
dash | 29 SHELLOPTS is updated when options are changed stdout: 1 1 1stderr: + grep -q xtrace + echo + echo 1 + set +x |
mksh | 29 SHELLOPTS is updated when options are changed stdout: 1 1 1stderr: + grep -q xtrace + echo + echo 1 + set +x |
dash | 30 SHELLOPTS is readonly stdout: status=0stderr: |
mksh | 30 SHELLOPTS is readonly stdout: status=0stderr: |
osh | 30 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
osh_ALT | 30 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
bash | 32 set without args lists variables stdout: __GLOBAL=mutated __OTHERLOCAL=L __mylocal=L __var_in_parent_scope=Dstderr: |
mksh | 32 set without args lists variables stdout: __GLOBAL=mutated __var_in_parent_scope=D __OTHERLOCAL=L __mylocal=Lstderr: |
dash | 34 set without args and array variables (not in OSH) stdout: stderr: _tmp/spec-bin/dash: 1: declare: not found _tmp/spec-bin/dash: 2: Syntax error: "(" unexpected |
mksh | 34 set without args and array variables (not in OSH) stdout: __array[0]=1 __array[1]=2 __array[2]='3 4'stderr: _tmp/spec-bin/mksh: <stdin>[1]: declare: not found |
osh | 34 set without args and array variables (not in OSH) stdout: stderr: |
osh_ALT | 34 set without args and array variables (not in OSH) stdout: stderr: |
dash | 35 set without args and assoc array variables (not in OSH) stdout: stderr: _tmp/spec-bin/dash: 1: typeset: not found _tmp/spec-bin/dash: 2: __assoc[k e y]=v a l: not found _tmp/spec-bin/dash: 3: __assoc[a]=b: not found |
mksh | 35 set without args and assoc array variables (not in OSH) stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: typeset: -A: unknown option _tmp/spec-bin/mksh: <stdin>[2]: 'k e y': multi-character character constant |
osh | 35 set without args and assoc array variables (not in OSH) stdout: stderr: |
osh_ALT | 35 set without args and assoc array variables (not in OSH) stdout: stderr: |
dash | 36 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 | 36 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 |
dash | 37 shopt -q invalid stdout: invalidZZ=127stderr: _tmp/spec-bin/dash: 1: shopt: not found |
bash | 37 shopt -q invalid stdout: invalidZZ=1stderr: _tmp/spec-bin/bash: line 1: shopt: invalidZZ: invalid shell option name |
mksh | 37 shopt -q invalid stdout: invalidZZ=127stderr: _tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
dash | 38 sh -i loads rcfile (when combined with -c) stdout: 1stderr: _tmp/spec-bin/dash: 0: Illegal option -- |
mksh | 38 sh -i loads rcfile (when combined with -c) stdout: 1stderr: _tmp/spec-bin/mksh: _tmp/spec-bin/mksh: --: unknown option |
dash | 39 shopt -s all:strict stdout: stderr: _tmp/spec-bin/dash: 2: Syntax error: Bad function name |
bash | 39 shopt -s all:strict stdout: - - -stderr: _tmp/spec-bin/bash: line 7: shopt: all:strict: invalid shell option name _tmp/spec-bin/bash: line 9: shopt: all:strict: invalid shell option name |
mksh | 39 shopt -s all:strict stdout: - - -stderr: _tmp/spec-bin/mksh: <stdin>[6]: shopt: not found _tmp/spec-bin/mksh: <stdin>[7]: shopt: not found _tmp/spec-bin/mksh: <stdin>[8]: shopt: not found _tmp/spec-bin/mksh: <stdin>[9]: shopt: not found _tmp/spec-bin/mksh: <stdin>[10]: shopt: not found |
dash | 40 shopt allows for backward compatibility like bash stdout: status=0stderr: _tmp/spec-bin/dash: 2: shopt: not found _tmp/spec-bin/dash: 5: shopt: not found |
mksh | 40 shopt allows for backward compatibility like bash stdout: status=0stderr: _tmp/spec-bin/mksh: <stdin>[2]: shopt: not found _tmp/spec-bin/mksh: <stdin>[5]: shopt: not found |