Results for special-vars.test.sh

statusdashbashmkshzshoshosh_ALT
pass 152618192222
ok 001000
N-I 1005300
BUG 102400
FAIL 000044
total262626262626
casedashbashmkshzshoshosh_ALTdescription
0pass pass pass pass pass pass $PWD is set
1pass pass BUG pass pass pass $PWD is not only set, but exported
details
2pass pass pass BUG pass pass $HOME is NOT set
details
3pass pass pass BUG pass pass $1 .. $9 are scoped, while $0 is not
details
4pass pass pass pass pass pass $?
5pass pass pass pass pass pass $#
6N-I pass N-I pass FAIL FAIL $_
detailsdetailsdetailsdetails
7pass pass pass pass pass pass $$ looks like a PID
8pass pass pass pass pass pass $$ doesn't change with subshell or command sub
9N-I pass pass N-I FAIL FAIL $BASHPID DOES change with subshell and command sub
detailsdetailsdetailsdetails
10pass pass pass pass pass pass Background PID $! looks like a PID
11pass pass pass pass pass pass $PPID
12N-I pass pass N-I pass pass $PIPESTATUS
detailsdetails
13N-I pass pass pass FAIL FAIL $RANDOM
detailsdetailsdetails
14N-I pass N-I pass pass pass $UID and $EUID
detailsdetails
15N-I pass N-I pass pass pass $OSTYPE is non-empty
detailsdetails
16N-I pass N-I N-I pass pass $HOSTNAME
detailsdetailsdetails
17BUG pass pass BUG pass pass $LINENO is the current line, not line of function call
detailsdetails
18pass pass pass BUG pass pass $LINENO in "bare" redirect arg (bug regression)
details
19pass pass pass pass pass pass $LINENO in redirect arg (bug regression)
20N-I pass N-I pass pass pass $LINENO for [[
detailsdetails
21N-I pass pass pass pass pass $LINENO for ((
details
22pass pass ok pass pass pass $LINENO in for loop
details
23pass pass pass pass pass pass $LINENO in other for loops
24N-I pass BUG pass FAIL FAIL $LINENO in for (( loop
detailsdetailsdetailsdetails
25pass pass pass pass pass pass $LINENO for assignment
122 passed, 1 OK, 18 not implemented, 7 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

mksh1 $PWD is not only set, but exported

stdout:
stderr: 
zsh2 $HOME is NOT set

stdout:
zsh sets HOME
stderr:
zsh3 $1 .. $9 are scoped, while $0 is not

stdout:
fun a b
stderr:
dash6 $_

stdout:
hi

stderr:
mksh6 $_

stdout:
hi

stderr:
osh6 $_

[osh stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
osh_ALT6 $_

[osh_ALT stdout] Expected u'hi\nhi\n', got 'hi\n\n'

stdout:
hi

stderr:
dash9 $BASHPID DOES change with subshell and command sub

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

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

[osh stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[osh status] Expected 3, got 1

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

[osh_ALT stdout] Expected 'subshell OK\ncommand sub OK\n', got ''
[osh_ALT status] Expected 3, got 1

stdout:
stderr: 
empty BASHPID in parent
dash12 $PIPESTATUS

stdout:
stderr: 
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Bad substitution
zsh12 $PIPESTATUS

stdout:
['']
stderr:
dash13 $RANDOM

stdout:
0
stderr:
osh13 $RANDOM

[osh status] Expected 0, got 1

stdout:
0
stderr:
osh_ALT13 $RANDOM

[osh_ALT status] Expected 0, got 99

stdout:
64
stderr:
dash14 $UID and $EUID

stdout:
stderr: 
mksh14 $UID and $EUID

stdout:
stderr: 
dash15 $OSTYPE is non-empty

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

stdout:
status=1
stderr:
dash16 $HOSTNAME

stdout:
status=1
stderr:
mksh16 $HOSTNAME

stdout:
status=1
stderr:
zsh16 $HOSTNAME

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

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

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

stdout:
stderr: 
dash20 $LINENO for [[

stdout:
one
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: [[: not found
mksh20 $LINENO for [[

stdout:
one
stderr:
dash21 $LINENO for ((

stdout:
one

stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: x: not found
mksh22 $LINENO in for loop

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

stdout:
one
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: Bad for loop variable
mksh24 $LINENO in for (( loop

stdout:
one
stderr:
/home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: syntax error: '((' unexpected
osh24 $LINENO in for (( loop

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

stdout:
one
0
1
2
stderr:
osh_ALT24 $LINENO in for (( loop

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

stdout:
one
0
1
2
stderr: