Results for vars-special.test.sh

statusdashbash-4mkshzshosh
pass 1841222837
ok 00241
N-I 2101340
BUG 20450
FAIL 00003
total4141414141
casedashbash-4mkshzshoshdescription
0pass pass pass pass pass $PWD is set
1pass pass BUG pass pass $PWD is not only set, but exported
details
2pass pass pass pass pass $PATH is set if unset at startup
3pass pass pass BUG pass $HOME is NOT set
details
4N-I pass ok ok pass Some vars are set, even without startup file, or env: PATH, PWD
detailsdetailsdetails
5BUG pass BUG pass FAIL UID EUID PPID can't be changed
detailsdetailsdetails
6pass pass pass BUG pass HOSTNAME OSTYPE can be changed
details
7pass pass pass BUG pass $1 .. $9 are scoped, while $0 is not
details
8pass pass pass pass pass $?
9pass pass pass pass pass $#
10pass pass pass pass pass $$ looks like a PID
11pass pass pass pass pass $$ doesn't change with subshell or command sub
12N-I pass pass N-I pass $BASHPID DOES change with subshell and command sub
detailsdetails
13pass pass pass pass pass Background PID $! looks like a PID
14pass pass pass pass pass $PPID
15N-I pass pass N-I pass $PIPESTATUS
detailsdetails
16N-I pass pass pass FAIL $RANDOM
detailsdetails
17N-I pass N-I pass pass $UID and $EUID
detailsdetails
18N-I pass N-I pass pass $OSTYPE is non-empty
detailsdetails
19N-I pass N-I N-I pass $HOSTNAME
detailsdetailsdetails
20BUG pass pass BUG pass $LINENO is the current line, not line of function call
detailsdetails
21pass pass pass BUG pass $LINENO in "bare" redirect arg (bug regression)
details
22pass pass pass pass pass $LINENO in redirect arg (bug regression)
23N-I pass N-I pass pass $LINENO in [[
detailsdetails
24N-I pass pass pass pass $LINENO in ((
details
25pass pass ok pass pass $LINENO in for loop
details
26pass pass pass pass pass $LINENO in other for loops
27N-I pass BUG pass FAIL $LINENO in for (( loop
detailsdetailsdetails
28pass pass pass pass pass $LINENO for assignment
29pass pass BUG pass pass $LINENO in case
details
30N-I pass N-I pass pass $_ with simple command and evaluation
detailsdetails
31N-I pass N-I pass pass $_ and ${_}
detailsdetails
32N-I pass N-I pass pass $_ with word splitting
detailsdetails
33N-I pass N-I ok pass $_ with pipeline and subshell
detailsdetailsdetails
34N-I pass N-I pass pass $_ with && and ||
detailsdetails
35N-I pass N-I pass pass $_ is not reset with (( and [[
detailsdetails
36N-I pass N-I ok ok $_ with assignments, arrays, etc.
detailsdetailsdetailsdetails
37N-I pass N-I ok pass $_ with loop
detailsdetailsdetails
38N-I pass pass pass pass $_ is not undefined on first use
details
39N-I pass N-I N-I pass BASH_VERSION / OILS_VERSION
detailsdetailsdetails
40N-I pass pass pass pass $SECONDS
details
146 passed, 7 OK, 38 not implemented, 11 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

mksh1 $PWD is not only set, but exported

stdout:
stderr: 
zsh3 $HOME is NOT set

stdout:
zsh sets HOME
stderr:
dash4 Some vars are set, even without startup file, or env: PATH, PWD

stdout:
stderr: 
mksh4 Some vars are set, even without startup file, or env: PATH, PWD

stdout:
path pwd ps4 0
shellopts 0
home ps1 0
ifs 0
stderr:
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 PS4='+ '
typeset IFS=$' \t\n'
zsh4 Some vars are set, even without startup file, or env: PATH, PWD

stdout:
path pwd ps4 0
shellopts 1
home ps1 0
ifs 0
stderr:
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 PS4='+%N:%i> '
typeset IFS=' 	
'
dash5 UID EUID PPID can't be changed

stdout:
uid=xx
euid=xx
status=0
stderr:
mksh5 UID EUID PPID can't be changed

stdout:
uid=xx
euid=xx
status=0
stderr:
osh5 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=0
stderr:
zsh6 HOSTNAME OSTYPE can be changed

stdout:
stderr: 
zsh7 $1 .. $9 are scoped, while $0 is not

stdout:
a b
stderr:
dash12 $BASHPID DOES change with subshell and command sub

stdout:
stderr: 
empty BASHPID in parent
zsh12 $BASHPID DOES change with subshell and command sub

stdout:
stderr: 
empty BASHPID in parent
dash15 $PIPESTATUS

stdout:
stderr: 
dash: 2: Bad substitution
zsh15 $PIPESTATUS

stdout:
['']
stderr:
dash16 $RANDOM

stdout:
0
stderr:
osh16 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
dash17 $UID and $EUID

stdout:
stderr: 
mksh17 $UID and $EUID

stdout:
stderr: 
dash18 $OSTYPE is non-empty

stdout:
status=1
stderr:
mksh18 $OSTYPE is non-empty

stdout:
status=1
stderr:
dash19 $HOSTNAME

stdout:
status=1
stderr:
mksh19 $HOSTNAME

stdout:
status=1
stderr:
zsh19 $HOSTNAME

stdout:
status=1
stderr:
dash20 $LINENO is the current line, not line of function call

stdout:
1
['2']
['2']
['4']
stderr:
zsh20 $LINENO is the current line, not line of function call

stdout:
1
['1']
['1']
['3']
stderr:
zsh21 $LINENO in "bare" redirect arg (bug regression)

stdout:
stderr: 
dash23 $LINENO in [[

stdout:
one
stderr:
dash: 2: [[: not found
mksh23 $LINENO in [[

stdout:
one
stderr:
dash24 $LINENO in ((

stdout:
one

stderr:
dash: 2: x: not found
mksh25 $LINENO in for loop

stdout:
one
1
zzz
stderr:
dash27 $LINENO in for (( loop

stdout:
one
stderr:
dash: 2: Syntax error: Bad for loop variable
mksh27 $LINENO in for (( loop

stdout:
one
stderr:
mksh: <stdin>[2]: syntax error: '((' unexpected
osh27 $LINENO in for (( loop

[osh stdout] Expected 'one\n0\n1\n', got 'one\n0\n1\n2\n'

stdout:
one
0
1
2
stderr:
mksh29 $LINENO in case

stdout:
line=3
stderr:
dash30 $_ with simple command and evaluation

stdout:
hi world

stderr:
mksh30 $_ with simple command and evaluation

stdout:
hi world

stderr:
dash31 $_ and ${_}

stdout:
stderr: 
mksh31 $_ and ${_}

stdout:
stderr: 
dash32 $_ with word splitting

stdout:
stderr: 
mksh32 $_ with word splitting

stdout:
stderr: 
dash33 $_ with pipeline and subshell

stdout:
stderr: 
mksh33 $_ with pipeline and subshell

stdout:
stderr: 
zsh33 $_ with pipeline and subshell

stdout:
last=3
pipeline=last=3
subshell=
done=
stderr:
zsh: command not found: shopt
seq: write error: Broken pipe
dash34 $_ with && and ||

stdout:
stderr: 
mksh34 $_ with && and ||

stdout:
stderr: 
dash35 $_ is not reset with (( and [[

stdout:
stderr: 
mksh35 $_ is not reset with (( and [[

stdout:
stderr: 
dash36 $_ with assignments, arrays, etc.

stdout:
stderr: 
mksh36 $_ with assignments, arrays, etc.

stdout:
stderr: 
zsh36 $_ with assignments, arrays, etc.

stdout:
colon [foo]
bare assign []
declare [declare]
array [declare [declare]]
declare array [declare]
declare flag [-g]
stderr:
osh36 $_ 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:
dash37 $_ with loop

stdout:
stderr: 
mksh37 $_ with loop

stdout:
stderr: 
zsh37 $_ with loop

stdout:
init
begin=init
prev=
prev=prev=
prev=prev=prev=
stderr:
dash38 $_ is not undefined on first use

stdout:
stderr: 
dash: 1: _: parameter not set
dash39 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
mksh39 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
zsh39 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
dash40 $SECONDS

stdout:
seconds=
stderr: