Results for vars-special.test.sh

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

stdout:
path pwd ps4 0
shellopts 1
home 0
ps1 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 PS1=''
zsh5 $1 .. $9 are scoped, while $0 is not

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

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

stdout:
stderr: 
empty BASHPID in parent
dash13 $PIPESTATUS

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

stdout:
['']
stderr:
dash14 $RANDOM

stdout:
0
stderr:
osh14 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
dash15 $UID and $EUID

stdout:
stderr: 
mksh15 $UID and $EUID

stdout:
stderr: 
dash16 $OSTYPE is non-empty

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

stdout:
status=1
stderr:
dash17 $HOSTNAME

stdout:
status=1
stderr:
mksh17 $HOSTNAME

stdout:
status=1
stderr:
zsh17 $HOSTNAME

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

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

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

stdout:
stderr: 
dash21 $LINENO in [[

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

stdout:
one
stderr:
dash22 $LINENO in ((

stdout:
one

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

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

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

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

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

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

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

stdout:
hi world

stderr:
mksh28 $_ with simple command and evaluation

stdout:
hi world

stderr:
dash29 $_ and ${_}

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

stdout:
stderr: 
dash30 $_ with word splitting

stdout:
stderr: 
mksh30 $_ with word splitting

stdout:
stderr: 
dash31 $_ with pipeline and subshell

stdout:
stderr: 
mksh31 $_ with pipeline and subshell

stdout:
stderr: 
zsh31 $_ with pipeline and subshell

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

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

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

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

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

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

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

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

stdout:
stderr: 
mksh35 $_ with loop

stdout:
stderr: 
zsh35 $_ with loop

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

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

stdout:
no version
stderr:
mksh37 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
zsh37 BASH_VERSION / OILS_VERSION

stdout:
no version
stderr:
dash38 $SECONDS

stdout:
seconds=
stderr: