spec test index / oilshell.org
236 passed, 15 OK, 14 not implemented, 6 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
dash | 3 Nonexistent file stdout: status=2stderr: dash: 1: cannot open /home/andy/git/oilshell/oil/_tmp/spec-tmp/redirect.test.sh/03-dash/nonexistent.txt: No such file |
bash | 5 Redirect in assignment stdout: FILE= FOO=stderr: foo |
dash | 7 Redirect in function body is evaluated multiple times stdout: stderr: dash: 2: arithmetic expression: expecting primary: "i++" |
dash | 12 Descriptor redirect with filename stdout: stderr: dash: 2: Syntax error: Bad fd number |
bash | 12 Descriptor redirect with filename stdout: status=0stderr: |
mksh | 15 Prefix redirect for loop -- not allowed stdout: stderr: mksh: <stdin>[1]: for: not found mksh: <stdin>[2]: syntax error: 'do' unexpected |
dash | 20 Named file descriptor stdout: stderr: dash: 1: exec: {myfd}: not found |
mksh | 20 Named file descriptor stdout: stderr: mksh: <stdin>[1]: {myfd}: not found |
dash | 21 Double digit fd (20> file) stdout: stderr: dash: 1: exec: 20: not found |
mksh | 23 : 3>&3 (OSH regression) stdout: stderr: |
dash | 24 : 3>&3- stdout: stderr: dash: 2: Syntax error: Bad fd number |
mksh | 24 : 3>&3- stdout: stderr: mksh: <stdin>[1]: 3>&3- : illegal file descriptor name |
dash | 30 Redirect to empty string stdout: result=2stderr: dash: 2: cannot create : Directory nonexistent dash: 5: cannot create : Directory nonexistent |
dash | 31 Redirect to file descriptor that's not open stdout: stderr: dash: 8: 7: Bad file descriptor |
dash | 34 >| to clobber stdout: status=2 XX ZZstderr: dash: 5: cannot create /home/andy/git/oilshell/oil/_tmp/spec-tmp/redirect.test.sh/34-dash/c.txt: File exists |
osh | 34 >| to clobber [osh stdout] Expected 'status=1\nXX\nZZ\n', got 'status=0\nYY\nZZ\n' stdout: status=0 YY ZZstderr: |
osh_ALT | 34 >| to clobber [osh_ALT stdout] Expected 'status=1\nXX\nZZ\n', got 'status=0\nYY\nZZ\n' stdout: status=0 YY ZZstderr: |
dash | 35 &> redirects stdout and stderr stdout: STDOUTstderr: STDERR |
dash | 36 >&word redirects stdout and stderr when word is not a number or - stdout: stderr: |
mksh | 36 >&word redirects stdout and stderr when word is not a number or - stdout: stderr: |
osh | 36 >&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-6769.txt'. Expected D, -, or D- where D is an integer grep: osh-6769.txt: No such file or directory grep: osh-6769.txt: No such file or directory |
osh_ALT | 36 >&word redirects stdout and stderr when word is not a number or - [osh_ALT stdout] Expected 'STDOUT\nSTDERR\n', got '' [osh_ALT status] Expected 0, got 2 stdout: stderr: stdout_stderr.py >&$tmp ^~~~ [ stdin ]:5: Invalid descriptor 'osh-6775.txt'. Expected D, -, or D- where D is an integer grep: osh-6775.txt: No such file or directory grep: osh-6775.txt: No such file or directory |
dash | 38 1>&2- to move file descriptor stdout: stderr: dash: 4: Syntax error: Bad fd number |
mksh | 38 1>&2- to move file descriptor stdout: stderr: mksh: <stdin>[3]: 6>&5- : illegal file descriptor name |
bash | 39 1>&2- (Bash bug: fail to restore closed fd) stdout: hellostderr: bash: line 19: 7: Bad file descriptor |
mksh | 39 1>&2- (Bash bug: fail to restore closed fd) stdout: stderr: mksh: <stdin>[18]: 6>&7- : illegal file descriptor name |
dash | 42 &>> appends stdout and stderr stdout: stderr: |
dash | 45 $(< $file) yields the contents of the file stdout: stderr: |
dash | 49 2&>1 (is it a redirect or is it like a&>1) stdout: status=0stderr: dash: 1: 2: not found |
mksh | 49 2&>1 (is it a redirect or is it like a&>1) stdout: status=0stderr: |
bash | 50 can't mention big file descriptor stdout: hi hi histderr: |
osh | 50 can't mention big file descriptor stdout: hi hi hi 100stderr: |
osh_ALT | 50 can't mention big file descriptor stdout: hi hi hi 100stderr: |
dash | 51 : >/dev/null 2> / (OSH regression: fail to pop fd frame) stdout: stderr: dash: 1: cannot create /: Is a directory |
mksh | 51 : >/dev/null 2> / (OSH regression: fail to pop fd frame) stdout: stderr: mksh: <stdin>[1]: can't create /: Is a directory |
dash | 52 echo foo >&100 (OSH regression: does not fail with invalid fd 100) stdout: stderr: dash: 3: Syntax error: Bad fd number |
dash | 53 echo foo >&N where N is first unused fd stdout: stderr: dash: 8: Syntax error: Bad function name |
dash | 54 exec {fd}>&- (OSH regression: fails to close fd) stdout: stderr: |
mksh | 54 exec {fd}>&- (OSH regression: fails to close fd) stdout: stderr: |