Results for special-vars.test.sh

casedashbashmkshoshdescription
0pass pass pass pass $PWD
1pass pass pass pass $?
2pass pass pass pass $#
3ok ok ok FAIL $-
detailsdetailsdetailsdetails
4N-I pass N-I FAIL $_
detailsdetailsdetails
5pass pass pass pass $$ looks like a PID
6pass pass pass pass $$ doesn't change with subshell
7N-I pass pass FAIL $BASHPID DOES change with subshell
detailsdetails
8pass pass pass pass Background PID $! looks like a PID
9pass pass pass FAIL $PPID
details
10N-I pass pass pass $PIPESTATUS
details
11N-I pass pass FAIL $RANDOM
detailsdetails

35 passed, 3 ok, 5 known unimplemented, 0 known bugs, 5 failed, 0 skipped

Details on runs that didn't PASS

dash3 $-

stdout:
u
stderr:
bash3 $-

stdout:
huBc
stderr:
mksh3 $-

stdout:
uhc
stderr:
osh3 $-

[osh status] Expected 0, got 2

stdout:
stderr: 
Usage: osh [options]

osh: error: no such option: -o
dash4 $_

stdout:
hi

stderr:
mksh4 $_

stdout:
hi

stderr:
osh4 $_

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

stdout:
hi

stderr:
dash7 $BASHPID DOES change with subshell

stdout:
stderr: 
empty BASHPID in parent
osh7 $BASHPID DOES change with subshell

[osh status] Expected 3, got 1

stdout:
stderr: 
empty BASHPID in parent
osh9 $PPID

[osh 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: