Results for special-vars.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass $PWD
1pass pass pass pass pass $1 .. $9 are scoped, while $0 is not
2pass pass pass pass pass $?
3pass pass pass pass pass $#
4N-I pass N-I FAIL FAIL $_
detailsdetailsdetailsdetails
5pass pass pass pass pass $$ looks like a PID
6pass pass pass pass pass $$ doesn't change with subshell or command sub
7N-I pass pass FAIL FAIL $BASHPID DOES change with subshell and command sub
detailsdetailsdetails
8pass pass pass pass pass Background PID $! looks like a PID
9pass pass pass FAIL FAIL $PPID
detailsdetails
10N-I pass pass pass pass $PIPESTATUS
details
11N-I pass pass FAIL FAIL $RANDOM
detailsdetailsdetails
12N-I pass N-I pass pass $UID and $EUID
detailsdetails

50 passed, 0 ok, 7 known unimplemented, 0 known bugs, 4 failed, 0 skipped

Details on runs that didn't PASS

dash4 $_

stdout:
hi

stderr:
mksh4 $_

stdout:
hi

stderr:
osh4 $_

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

stdout:
hi

stderr:
osh_ALT4 $_

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

stdout:
hi

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

stdout:
stderr: 
empty BASHPID in parent
osh7 $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_ALT7 $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
osh9 $PPID

[osh status] Expected 0, got 1

stdout:
stderr: 
osh_ALT9 $PPID

[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
dash10 $PIPESTATUS

stdout:
stderr: 
/bin/dash: 2: Bad substitution
dash11 $RANDOM

stdout:
0
stderr:
osh11 $RANDOM

[osh status] Expected 0, got 99

stdout:
7
stderr:
osh_ALT11 $RANDOM

[osh_ALT status] Expected 0, got 99

stdout:
41
stderr:
dash12 $UID and $EUID

stdout:
stderr: 
mksh12 $UID and $EUID

stdout:
stderr: