spec test index / oilshell.org
116 passed, 13 OK, 12 not implemented, 5 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
dash | 3 2&>1 (is it a redirect or is it like a&>1) stdout: status=0stderr: dash: 1: 2: not found |
mksh | 3 2&>1 (is it a redirect or is it like a&>1) stdout: status=0stderr: |
dash | 4 Nonexistent file stdout: status=2stderr: dash: 1: cannot open /home/uke/oil/_tmp/spec-tmp/redirect.test.sh.20768/04-dash/nonexistent.txt: No such file |
bash | 8 Descriptor redirect with filename stdout: status=0stderr: |
dash | 8 Descriptor redirect with filename stdout: stderr: dash: 2: Syntax error: Bad fd number |
dash | 10 Named file descriptor stdout: stderr: dash: 1: exec: {myfd}: not found |
mksh | 10 Named file descriptor stdout: stderr: mksh: <stdin>[1]: {myfd}: not found |
dash | 11 Double digit fd (20> file) stdout: stderr: dash: 1: exec: 20: not found |
mksh | 13 : 3>&3 (OSH regression) stdout: stderr: |
dash | 14 : 3>&3- stdout: stderr: dash: 2: Syntax error: Bad fd number |
mksh | 14 : 3>&3- stdout: stderr: mksh: <stdin>[1]: 3>&3- : illegal file descriptor name |
dash | 18 Redirect to empty string stdout: result=2stderr: dash: 2: cannot create : Directory nonexistent dash: 5: cannot create : Directory nonexistent |
dash | 19 Redirect to file descriptor that's not open stdout: stderr: dash: 8: 7: Bad file descriptor |
dash | 22 >| to clobber stdout: status=2 XX ZZstderr: dash: 5: cannot create /home/uke/oil/_tmp/spec-tmp/redirect.test.sh.20768/22-dash/c.txt: File exists |
osh | 22 >| to clobber [osh stdout] Expected 'status=1\nXX\nZZ\n', got 'status=0\nYY\nZZ\n' stdout: status=0 YY ZZstderr: |
dash | 23 &> redirects stdout and stderr stdout: STDOUTstderr: STDERR |
dash | 24 >&word redirects stdout and stderr when word is not a number or - stdout: stderr: |
mksh | 24 >&word redirects stdout and stderr when word is not a number or - stdout: stderr: |
osh | 24 >&word redirects stdout and stderr when word is not a number or - [osh stdout] Expected 'STDOUT\nSTDERR\n', got '' [osh status] Expected 0, got 2 stdout: stderr: stdout_stderr.py >&$tmp ^~~~ [ stdin ]:5: Invalid descriptor 'osh-21001.txt'. Expected D, -, or D- where D is an integer grep: osh-21001.txt: No such file or directory grep: osh-21001.txt: No such file or directory |
dash | 26 1>&2- to move file descriptor stdout: stderr: dash: 4: Syntax error: Bad fd number |
mksh | 26 1>&2- to move file descriptor stdout: stderr: mksh: <stdin>[3]: 6>&5- : illegal file descriptor name |
bash | 27 1>&2- (Bash bug: fail to restore closed fd) stdout: hellostderr: bash: line 19: 7: Bad file descriptor |
dash | 27 1>&2- (Bash bug: fail to restore closed fd) stdout: stderr: dash: 19: Syntax error: Bad fd number |
dash | 30 &>> appends stdout and stderr stdout: stderr: |
bash | 32 can't mention big file descriptor stdout: hi hi histderr: |
osh | 32 can't mention big file descriptor stdout: hi hi hi 100stderr: |
dash | 33 : >/dev/null 2> / (OSH regression: fail to pop fd frame) stdout: stderr: dash: 1: cannot create /: Is a directory |
mksh | 33 : >/dev/null 2> / (OSH regression: fail to pop fd frame) stdout: stderr: mksh: <stdin>[1]: can't create /: Is a directory |
dash | 34 echo foo >&100 (OSH regression: does not fail with invalid fd 100) stdout: stderr: dash: 3: Syntax error: Bad fd number |
dash | 35 echo foo >&N where N is first unused fd stdout: stderr: dash: 8: Syntax error: Bad function name |
dash | 36 exec {fd}>&- (OSH regression: fails to close fd) stdout: stderr: |
mksh | 36 exec {fd}>&- (OSH regression: fails to close fd) stdout: stderr: |