spec test index / oilshell.org
95 passed, 15 OK, 30 not implemented, 2 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
bash | 0 $- with -c stdout: huBcstderr: |
mksh | 0 $- with -c stdout: uhcstderr: |
dash | 1 $- with pipefail stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: set: Illegal option -o pipefail |
bash | 1 $- with pipefail stdout: huBsstderr: |
mksh | 1 $- with pipefail stdout: ushstderr: |
dash | 5 can continue after unknown option stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: set: Illegal option -o STRICT |
mksh | 5 can continue after unknown option stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: set: STRICT: bad option |
dash | 8 nounset stdout: []stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: unset: parameter not set |
dash | 9 -u is nounset stdout: []stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: unset: parameter not set |
dash | 15 set -eu (flag parsing) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: unset: parameter not set |
osh | 16 -n for no execution (useful with --ast-output) [osh stdout] Expected '1\n', got '1\n2\n3\n' stdout: 1 2 3stderr: |
dash | 17 pipefail stdout: 0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: set: Illegal option -o pipefail |
dash | 18 shopt -p -o prints 'set' options stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: shopt: not found |
mksh | 18 shopt -p -o prints 'set' options stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: shopt: not found |
dash | 19 shopt -p prints 'shopt' options stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: shopt: not found |
mksh | 19 shopt -p prints 'shopt' options stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: shopt: not found |
dash | 20 shopt with no flags prints options stdout: 0 one.txt 0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 6: shopt: not found |
mksh | 20 shopt with no flags prints options stdout: 0 one.txt 0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[6]: shopt: not found |
dash | 22 noclobber on stdout: 0 2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 5: cannot create /home/andy/git/oilshell/oil/_tmp/spec-tmp/sh-options.test.sh/no-clobber: File exists |
osh | 22 noclobber on [osh stdout] Expected u'0\n1\n', got '0\n0\n' stdout: 0 0stderr: |
dash | 23 SHELLOPTS is updated when options are changed stdout: 1 1 1stderr: + echo + grep -q xtrace + echo 1 + set +x |
mksh | 23 SHELLOPTS is updated when options are changed stdout: 1 1 1stderr: + grep -q xtrace + echo + echo 1 + set +x |
dash | 24 SHELLOPTS is readonly stdout: status=0stderr: |
mksh | 24 SHELLOPTS is readonly stdout: status=0stderr: |
osh | 24 SHELLOPTS is readonly stdout: stderr: SHELLOPTS=x ^~~~~~~~~~ [ stdin ]:1: fatal: Can't assign to readonly value 'SHELLOPTS' |
bash | 26 set without args lists variables stdout: __GLOBAL=mutated __OTHERLOCAL=L __mylocal=L __var_in_parent_scope=Dstderr: |
mksh | 26 set without args lists variables stdout: __GLOBAL=mutated __var_in_parent_scope=D __OTHERLOCAL=L __mylocal=Lstderr: |
dash | 28 set without args and array variables (not in OSH) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: declare: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: "(" unexpected |
mksh | 28 set without args and array variables (not in OSH) stdout: __array[0]=1 __array[1]=2 __array[2]='3 4'stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: declare: not found |
osh | 28 set without args and array variables (not in OSH) stdout: stderr: |
dash | 29 set without args and assoc array variables (not in OSH) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: typeset: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: __assoc[k e y]=v a l: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: __assoc[a]=b: not found |
mksh | 29 set without args and assoc array variables (not in OSH) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: typeset: -A: unknown option /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: 'k e y': multi-character character constant |
osh | 29 set without args and assoc array variables (not in OSH) stdout: stderr: __assoc[a]=b ^~~~~~~~ [ stdin ]:3: fatal: Associative array keys must be strings: $x 'x' "$x" etc. |
dash | 30 shopt -q stdout: nullglob=127 nullglob=127 nullglob,failglob=127 nullglob,failglob=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 6: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 8: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 9: shopt: not found |
mksh | 30 shopt -q stdout: nullglob=127 nullglob=127 nullglob,failglob=127 nullglob,failglob=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[4]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[6]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[8]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[9]: shopt: not found |
dash | 31 shopt -q invalid stdout: invalidZZ=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found |
bash | 31 shopt -q invalid stdout: invalidZZ=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: invalidZZ: invalid shell option name |
mksh | 31 shopt -q invalid stdout: invalidZZ=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
dash | 32 shopt -s all:strict stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: Bad function name |
bash | 32 shopt -s all:strict stdout: - - -stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 7: shopt: all:strict: invalid shell option name /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 9: shopt: all:strict: invalid shell option name |
mksh | 32 shopt -s all:strict stdout: - - -stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[6]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[7]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[8]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[9]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[10]: shopt: not found |
dash | 33 shopt allows for backward compatibility like bash stdout: status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 5: shopt: not found |
mksh | 33 shopt allows for backward compatibility like bash stdout: status=0stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[5]: shopt: not found |
dash | 34 shopt -p validates option names stdout: status=127 status=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: shopt: not found |
bash | 34 shopt -p validates option names stdout: shopt -u nullglob shopt -u failglob status=1 nullglob off failglob off status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: invalid: invalid shell option name /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 3: shopt: invalid: invalid shell option name |
mksh | 34 shopt -p validates option names stdout: status=127 status=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: shopt: not found |
dash | 35 shopt -p -o validates option names stdout: status=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found |
bash | 35 shopt -p -o validates option names stdout: set +o errexit set +o nounset status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: invalid: invalid option name |
mksh | 35 shopt -p -o validates option names stdout: status=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |