spec test index / oilshell.org
159 passed, 22 OK, 5 not implemented, 22 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
mksh | 2 Env binding can use preceding bindings, but not subsequent ones stdout: foo [][] bazstderr: |
dash | 7 Multiple temporary envs on the stack stdout: f [] [A] --- g() --- None None None None p --- f() --- None None None None Nonestderr: |
mksh | 7 Multiple temporary envs on the stack stdout: f [] [A] --- g() --- f [] [A] None p --- f() --- f [] [A] None Nonestderr: |
dash | 9 Env binding not allowed before compound command stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: for: not found |
mksh | 9 Env binding not allowed before compound command stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: syntax error: 'do' unexpected |
zsh | 9 Env binding not allowed before compound command stdout: stderr: zsh: parse error near `for' |
zsh | 10 Trying to run keyword 'for' stdout: stderr: zsh: parse error near `for' |
bash | 14 Env binding in readonly/declare is NOT exported! (pitfall) stdout: v=None v2=stderr: |
zsh | 15 assignments / array assignments not interpreted after 'echo' stdout: stderr: zsh: no matches found: b[0]=2 |
dash | 16 dynamic local variables (and splitting) stdout: x='y a=b' a='' x='y' a='b'stderr: |
bash | 16 dynamic local variables (and splitting) stdout: x='y a=b' a='' x='y' a='b'stderr: |
mksh | 16 dynamic local variables (and splitting) stdout: x='y a=b' a='' x='y' a='b'stderr: |
dash | 18 'local x' does not set variable stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: x: parameter not set |
zsh | 18 'local x' does not set variable stdout: stderr: |
dash | 19 'local -a x' does not set variable stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: local: -a: bad variable name |
zsh | 19 'local -a x' does not set variable stdout: stderr: |
dash | 20 'local x' and then array assignment stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: x[3]=foo: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: Bad substitution |
zsh | 20 'local x' and then array assignment stdout: ostderr: |
dash | 21 'declare -A' and then dict assignment stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: declare: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: foo[bar]=value: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: Bad substitution |
mksh | 21 'declare -A' and then dict assignment stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: declare: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[3]: "bar": unexpected '"' |
dash | 24 Reveal existence of "temp frame" (All shells disagree here!!!) stdout: x=temp-binding x=mutated-temp x=local x= x=mutated-tempstderr: |
bash | 24 Reveal existence of "temp frame" (All shells disagree here!!!) stdout: x=temp-binding x=mutated-temp x=local x=global x=globalstderr: |
mksh | 24 Reveal existence of "temp frame" (All shells disagree here!!!) stdout: x=temp-binding x=mutated-temp x=local x=mutated-temp x=mutated-tempstderr: |
dash | 25 Test above without 'local' (which is not POSIX) stdout: x=temp-binding x=mutated-temp x= x=stderr: |
bash | 25 Test above without 'local' (which is not POSIX) stdout: x=temp-binding x=mutated-temp x=global x=globalstderr: |
mksh | 25 Test above without 'local' (which is not POSIX) stdout: x=temp-binding x=mutated-temp x= x=stderr: |
mksh | 26 Using ${x-default} after unsetting local shadowing a global stdout: x=global x=local - operator = global :- operator = globalstderr: |
bash | 27 Using ${x-default} after unsetting a temp binding shadowing a global stdout: x=temp-binding x=local - operator = global :- operator = globalstderr: |
mksh | 27 Using ${x-default} after unsetting a temp binding shadowing a global stdout: x=temp-binding x=local - operator = temp-binding :- operator = temp-bindingstderr: |
dash | 28 static assignment doesn't split stdout: ['a', 'a b c', 'a']stderr: |
dash | 29 aliased assignment doesn't split stdout: ['a', 'a']stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found |
dash | 30 assignment using dynamic keyword (splits in most shells, not in zsh/osh) stdout: ['a', 'a']stderr: |
bash | 30 assignment using dynamic keyword (splits in most shells, not in zsh/osh) stdout: ['a', 'a']stderr: |
mksh | 30 assignment using dynamic keyword (splits in most shells, not in zsh/osh) stdout: ['a', 'a']stderr: |
dash | 31 assignment using dynamic var names doesn't split stdout: ['a', 'a'] ['a b c', 'a b c']stderr: |
bash | 31 assignment using dynamic var names doesn't split stdout: ['a', 'a'] ['a b c', 'a b c']stderr: |
mksh | 31 assignment using dynamic var names doesn't split stdout: ['a', 'a'] ['a b c', 'a b c']stderr: |
dash | 32 assign and glob stdout: ['*'] ['b']stderr: |
dash | 33 declare and glob stdout: ['']stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: typeset: not found |
dash | 34 readonly $x where x='b c' stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: a: is read only |
bash | 34 readonly $x where x='b c' stdout: status=1 status=1 status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 4: a: readonly variable /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 6: b: readonly variable /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 8: c: readonly variable |
mksh | 34 readonly $x where x='b c' stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[4]: read-only: a |
dash | 35 readonly a=(1 2) no_value c=(3 4) makes 'no_value' readonly stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
dash | 37 local a=loc $var c=loc stdout: global ['loc', 'global', 'loc']stderr: |
zsh | 38 redirect after assignment builtin (what's going on with dash/bash/mksh here?) stdout: donestderr: |
osh | 38 redirect after assignment builtin (what's going on with dash/bash/mksh here?) [osh stderr] Expected 'STDERR\n', got '' stdout: donestderr: |
osh | 39 redirect after command sub (like case above but without assignment builtin) [osh stderr] Expected 'STDERR\n', got '' stdout: stdout=STDOUTstderr: |
bash | 40 redirect after bare assignment stdout: donestderr: STDERR |
dash | 41 redirect after declare -p stdout: stderr: |
bash | 41 redirect after declare -p stdout: stderr: declare -- foo="bar" |
osh | 41 redirect after declare -p stdout: stderr: foo |