spec test index / oilshell.org
case | dash | bash | mksh | osh | osh_ALT | description |
0 | pass | pass | pass | pass | pass | $PWD |
1 | pass | pass | pass | pass | pass | $1 .. $9 are scoped, while $0 is not |
2 | pass | pass | pass | pass | pass | $? |
3 | pass | pass | pass | pass | pass | $# |
4 | N-I | pass | N-I | FAIL | FAIL | $_ |
details | details | details | details | |||
5 | pass | pass | pass | pass | pass | $$ looks like a PID |
6 | pass | pass | pass | pass | pass | $$ doesn't change with subshell |
7 | N-I | pass | pass | FAIL | FAIL | $BASHPID DOES change with subshell |
details | details | details | ||||
8 | pass | pass | pass | pass | pass | Background PID $! looks like a PID |
9 | pass | pass | pass | FAIL | FAIL | $PPID |
details | details | |||||
10 | N-I | pass | pass | pass | pass | $PIPESTATUS |
details | ||||||
11 | N-I | pass | pass | FAIL | FAIL | $RANDOM |
details | details | details | ||||
12 | N-I | pass | N-I | pass | pass | $UID and $EUID |
details | details |
50 passed, 0 ok, 7 known unimplemented, 0 known bugs, 4 failed, 0 skipped
dash | 4 $_ stdout: histderr: |
mksh | 4 $_ stdout: histderr: |
osh | 4 $_ [osh stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
osh_ALT | 4 $_ [osh_ALT stdout] Expected u'hi\nhi\n', got 'hi\n\n' stdout: histderr: |
dash | 7 $BASHPID DOES change with subshell stdout: stderr: empty BASHPID in parent |
osh | 7 $BASHPID DOES change with subshell [osh status] Expected 3, got 1 stdout: stderr: empty BASHPID in parent |
osh_ALT | 7 $BASHPID DOES change with subshell [osh_ALT status] Expected 3, got 1 stdout: stderr: empty BASHPID in parent |
osh | 9 $PPID [osh status] Expected 0, got 1 stdout: stderr: |
osh_ALT | 9 $PPID [osh_ALT status] Expected 0, got 1 stdout: stderr: |
dash | 10 $PIPESTATUS stdout: stderr: /bin/dash: 2: Bad substitution |
dash | 11 $RANDOM stdout: 0stderr: |
osh | 11 $RANDOM [osh status] Expected 0, got 99 stdout: 7stderr: |
osh_ALT | 11 $RANDOM [osh_ALT status] Expected 0, got 99 stdout: 8stderr: |
dash | 12 $UID and $EUID stdout: stderr: |
mksh | 12 $UID and $EUID stdout: stderr: |