spec test index / oilshell.org
140 passed, 7 OK, 38 not implemented, 8 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
mksh | 1 $PWD is not only set, but exported stdout: stderr: |
zsh | 3 $HOME is NOT set stdout: zsh sets HOMEstderr: |
dash | 4 Some vars are set, even without startup file, or env: PATH, PWD stdout: stderr: |
mksh | 4 Some vars are set, even without startup file, or env: PATH, PWD stdout: path pwd ps4 0 shellopts 0 home 0 ps1 0stderr: typeset -x PATH=/usr/bin:/bin typeset PWD=/home/uke/oil/_tmp/spec-tmp/vars-special.test.sh.33056/04-mksh typeset PS4='+ ' typeset -x HOME= typeset PS1='$ ' |
zsh | 4 Some vars are set, even without startup file, or env: PATH, PWD stdout: path pwd ps4 0 shellopts 1 home 0 ps1 0stderr: typeset PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin typeset PWD=/home/uke/oil/_tmp/spec-tmp/vars-special.test.sh.33056/04-zsh typeset PS4='+%N:%i> ' zsh:typeset:1: no such variable: SHELLOPTS typeset HOME=/home/uke typeset PS1='' |
zsh | 5 $1 .. $9 are scoped, while $0 is not stdout: a bstderr: |
dash | 10 $BASHPID DOES change with subshell and command sub stdout: stderr: empty BASHPID in parent |
zsh | 10 $BASHPID DOES change with subshell and command sub stdout: stderr: empty BASHPID in parent |
dash | 13 $PIPESTATUS stdout: stderr: dash: 2: Bad substitution |
zsh | 13 $PIPESTATUS stdout: ['']stderr: |
dash | 14 $RANDOM stdout: 0stderr: |
osh | 14 $RANDOM [osh status] Expected 0, got 1 stdout: 0stderr: |
dash | 15 $UID and $EUID stdout: stderr: |
mksh | 15 $UID and $EUID stdout: stderr: |
dash | 16 $OSTYPE is non-empty stdout: status=1stderr: |
mksh | 16 $OSTYPE is non-empty stdout: status=1stderr: |
dash | 17 $HOSTNAME stdout: status=1stderr: |
mksh | 17 $HOSTNAME stdout: status=1stderr: |
zsh | 17 $HOSTNAME stdout: status=1stderr: |
dash | 18 $LINENO is the current line, not line of function call stdout: 1 ['2'] ['2'] ['4']stderr: |
zsh | 18 $LINENO is the current line, not line of function call stdout: 1 ['1'] ['1'] ['3']stderr: |
zsh | 19 $LINENO in "bare" redirect arg (bug regression) stdout: stderr: |
dash | 21 $LINENO in [[ stdout: onestderr: dash: 2: [[: not found |
mksh | 21 $LINENO in [[ stdout: onestderr: |
dash | 22 $LINENO in (( stdout: onestderr: dash: 2: x: not found |
mksh | 23 $LINENO in for loop stdout: one 1 zzzstderr: |
dash | 25 $LINENO in for (( loop stdout: onestderr: dash: 2: Syntax error: Bad for loop variable |
mksh | 25 $LINENO in for (( loop stdout: onestderr: mksh: <stdin>[2]: syntax error: '((' unexpected |
osh | 25 $LINENO in for (( loop [osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n' stdout: one 0 1 2stderr: |
mksh | 27 $LINENO in case stdout: line=3stderr: |
dash | 28 $_ with simple command and evaluation stdout: hi worldstderr: |
mksh | 28 $_ with simple command and evaluation stdout: hi worldstderr: |
dash | 29 $_ and ${_} stdout: stderr: |
mksh | 29 $_ and ${_} stdout: stderr: |
dash | 30 $_ with word splitting stdout: stderr: |
mksh | 30 $_ with word splitting stdout: stderr: |
dash | 31 $_ with pipeline and subshell stdout: stderr: |
mksh | 31 $_ with pipeline and subshell stdout: stderr: |
zsh | 31 $_ with pipeline and subshell stdout: last=3 pipeline=last=3 subshell= done=stderr: zsh: command not found: shopt seq: write error: Broken pipe |
dash | 32 $_ with && and || stdout: stderr: |
mksh | 32 $_ with && and || stdout: stderr: |
dash | 33 $_ is not reset with (( and [[ stdout: stderr: |
mksh | 33 $_ is not reset with (( and [[ stdout: stderr: |
dash | 34 $_ with assignments, arrays, etc. stdout: stderr: |
mksh | 34 $_ with assignments, arrays, etc. stdout: stderr: |
zsh | 34 $_ with assignments, arrays, etc. stdout: colon [foo] bare assign [] declare [declare] array [declare [declare]] declare array [declare] declare flag [-g]stderr: |
osh | 34 $_ with assignments, arrays, etc. stdout: colon [foo] bare assign [colon [foo]] declare [bare assign [colon [foo]]] array [declare [bare assign [colon [foo]]]] declare array [array [declare [bare assign [colon [foo]]]]] declare flag [declare array [array [declare [bare assign [colon [foo]]]]]]stderr: |
dash | 35 $_ with loop stdout: stderr: |
mksh | 35 $_ with loop stdout: stderr: |
zsh | 35 $_ with loop stdout: init begin=init prev= prev=prev= prev=prev=prev=stderr: |
dash | 36 $_ is not undefined on first use stdout: stderr: dash: 1: _: parameter not set |
dash | 37 BASH_VERSION / OILS_VERSION stdout: no versionstderr: |
mksh | 37 BASH_VERSION / OILS_VERSION stdout: no versionstderr: |
zsh | 37 BASH_VERSION / OILS_VERSION stdout: no versionstderr: |
dash | 38 $SECONDS stdout: seconds=stderr: |