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