224 passed, 24 OK, 47 not implemented, 24 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
| zsh | 7 read -n (with $REPLY) stdout: []stderr: |
| zsh | 8 IFS= read -n (OSH regression: value saved in tempenv) stdout: ['']stderr: |
| mksh | 9 read -n doesn't strip whitespace (bug fix) stdout: [a] [a b] [a b] one var strips whitespace [a] [a b] [a b] three vars [a] [] [] [a] [b] [] [a] [b] []stderr: |
| zsh | 9 read -n doesn't strip whitespace (bug fix) stdout: stderr: |
| mksh | 10 read -d -n - respects delimiter and splits stdout: delim c [a] [a] [a b] one var [a] [a] [a b] three vars [a] [] [] [a] [] [] [a] [b] []stderr: |
| zsh | 10 read -d -n - respects delimiter and splits stdout: stderr: |
| ash | 10 read -d -n - respects delimiter and splits stdout: stderr: |
| bash | 11 read -n with invalid arg stdout: status=1stderr: bash: line 1: read: not_a_number: invalid number |
| zsh | 11 read -n with invalid arg stdout: stderr: |
| zsh | 12 read -n from pipe stdout: stderr: |
| ash | 12 read -n from pipe stdout: stderr: |
| mksh | 13 read without args uses $REPLY, no splitting occurs (without -n) stdout: [a b] [a b] [a b line2] [a b line2] [a b \] [a b \]stderr: |
| zsh | 13 read without args uses $REPLY, no splitting occurs (without -n) stdout: [a b] [a b] [a b line2] [a b line2] [a b \] [a b \]stderr: |
| mksh | 14 read -n vs. -N stdout: read -n 'a' 'b' 'c' 'a' 'b' '' read -N 'a' 'b' 'c' 'a' 'b' ''stderr: |
| zsh | 14 read -n vs. -N stdout: stderr: |
| ash | 14 read -n vs. -N stdout: stderr: |
| zsh | 15 read -N ignores delimiters stdout: stderr: |
| ash | 15 read -N ignores delimiters stdout: stderr: |
| zsh | 16 read will unset extranous vars stdout: 'a' 'b' '' 'b' '' ''stderr: |
| mksh | 18 read -r with other backslash escapes stdout: ['one twoethree', 'one\\ twoethree']stderr: |
| zsh | 18 read -r with other backslash escapes stdout: ['one twoethree', 'one\\ twoethree']stderr: |
| mksh | 21 read -r with \n stdout: ['', '']stderr: |
| zsh | 21 read -r with \n stdout: ['', '']stderr: |
| zsh | 22 read -s from pipe, not a terminal stdout: stderr: |
| mksh | 26 read does not respect C backslash escapes stdout: d g h e 145 istderr: |
| zsh | 26 read does not respect C backslash escapes stdout: stderr: |
| ash | 26 read does not respect C backslash escapes stdout: abcdefghx65 145 istderr: |
| mksh | 28 read -a reads into array stdout: stderr: |
| zsh | 28 read -a reads into array stdout: stderr: |
| ash | 28 read -a reads into array stdout: stderr: ash: read: line 7: illegal option -a ash: syntax error: bad substitution |
| mksh | 33 read -t 0 tests if input is available stdout: stderr: |
| zsh | 33 read -t 0 tests if input is available stdout: stderr: |
| mksh | 34 read -t 0.5 stdout: 1stderr: |
| zsh | 34 read -t 0.5 stdout: 1stderr: |
| osh | 34 read -t 0.5 [osh stdout] Expected '1\n' Got '' [osh status] Expected 0 Got 1 stdout: stderr: read -t 0.5 < /dev/null
^
[ stdin ]:3: fatal: read -t isn't implemented (except t=0)
|
| bash | 35 read -t -0.5 is invalid stdout: 1stderr: |
| zsh | 35 read -t -0.5 is invalid stdout: stderr: zsh: not an identifier: -0.5 |
| mksh | 36 read -u stdout: stderr: |
| bash | 37 read -u syntax error stdout: status=1stderr: bash: line 1: read: -3: invalid file descriptor specification |
| zsh | 37 read -u syntax error stdout: status=1stderr: |
| mksh | 38 read -u -s stdout: stderr: |
| mksh | 39 read -u 3 -d 5 stdout: stderr: |
| mksh | 40 read -u 3 -d b -N 6 stdout: stderr: mksh: <stdin>[5]: read: read-only: 3 mksh: <stdin>[8]: read: read-only: 3 |
| zsh | 40 read -u 3 -d b -N 6 stdout: stderr: |
| ash | 40 read -u 3 -d b -N 6 stdout: stderr: |
| mksh | 41 read -N doesn't respect delimiter, while read -n does stdout: fooba foobastderr: |
| zsh | 41 read -N doesn't respect delimiter, while read -n does stdout: stderr: |
| ash | 41 read -N doesn't respect delimiter, while read -n does stdout: stderr: |
| mksh | 42 read -p (not fully tested) stdout: stderr: |
| zsh | 42 read -p (not fully tested) stdout: stderr: |
| bash | 43 read usage stdout: status=1stderr: bash: line 1: read: -1: invalid number |
| mksh | 43 read usage stdout: stderr: |
| zsh | 43 read usage stdout: stderr: zsh: not an identifier: -1 |
| zsh | 44 read with smooshed args stdout: var=stderr: zsh: bad option: -1 |
| mksh | 45 read -r -d '' for NUL strings, e.g. find -print0 stdout: stderr: |
| zsh | 45 read -r -d '' for NUL strings, e.g. find -print0 stdout: stderr: |
| mksh | 46 read from redirected directory is non-fatal error stdout: stderr: |
| mksh | 47 read -n from directory stdout: stderr: |
| ash | 47 read -n from directory stdout: stderr: |
| bash | 48 mapfile from directory (bash doesn't handle errors) stdout: status=0stderr: |
| mksh | 48 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
| zsh | 48 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
| ash | 48 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
| zsh | 49 read -n 0 stdout: stderr: |
| ash | 49 read -n 0 stdout: ['abcdef']stderr: |
| mksh | 50 read -n and backslash escape stdout: ['a\x08d\x1b'] ['a ']stderr: |
| zsh | 50 read -n and backslash escape stdout: stderr: |
| ash | 50 read -n and backslash escape stdout: ['abc'] ['a ']stderr: |
| mksh | 51 read -n 4 with incomplete backslash stdout: ['abc'] ['']stderr: |
| zsh | 51 read -n 4 with incomplete backslash stdout: stderr: |
| ash | 51 read -n 4 with incomplete backslash stdout: ['abc'] [' ']stderr: |
| mksh | 52 read -n 4 with backslash + delim stdout: ['abc']stderr: |
| zsh | 52 read -n 4 with backslash + delim stdout: stderr: |
| ash | 52 read -n 4 with backslash + delim stdout: ['abc']stderr: |
| mksh | 53 "backslash + newline" should be swallowed regardless of "-d <delim>" stdout: ['a bc d'] ['a b,c d'] ['a b\nc d'] ['a bc d']stderr: |
| zsh | 53 "backslash + newline" should be swallowed regardless of "-d <delim>" stdout: ['a bc d'] ['a b,c d'] ['a b\nc d'] ['a bc d']stderr: |
| mksh | 54 empty input and splitting stdout: stderr: |
| zsh | 54 empty input and splitting stdout: stderr: |
| ash | 54 empty input and splitting stdout: stderr: |
| mksh | 55 IFS='x ' read -a: trailing spaces (unlimited split) stdout: stderr: |
| zsh | 55 IFS='x ' read -a: trailing spaces (unlimited split) stdout: stderr: |
| ash | 55 IFS='x ' read -a: trailing spaces (unlimited split) stdout: stderr: |
| mksh | 57 IFS='x ' read -a: intermediate spaces (unlimited split) stdout: stderr: |
| zsh | 57 IFS='x ' read -a: intermediate spaces (unlimited split) stdout: stderr: |
| ash | 57 IFS='x ' read -a: intermediate spaces (unlimited split) stdout: stderr: |
| mksh | 59 IFS='\ ' and backslash escaping stdout: ['hello', 'world test'] ['hello', ' world test']stderr: |
| zsh | 59 IFS='\ ' and backslash escaping stdout: ['hello', 'world test'] ['hello', ' world test']stderr: |
| zsh | 61 IFS=x read a b <<< xxxxxx stdout: ['', ''] ['', 'x'] ['', 'xx'] ['', 'xxx'] ['', 'xxxx'] -- spaces -- ['', ''] ['', 'x'] ['', 'xx'] ['', 'xxx'] ['', 'xxxx'] -- with char -- ['', 'a'] ['', 'ax'] ['', 'axx'] ['', 'axxx'] ['', 'axxxx']stderr: |
| mksh | 62 read and "\ " stdout: -- xs... -- ['', ''] ['', ''] ['', ' '] ['', ' '] -- xe... -- ['', ''] ['', ' '] ['', ' '] ['', ''] ['', ''] ['', '']stderr: |
| zsh | 62 read and "\ " stdout: -- xs... -- ['', ''] ['', ''] ['', ''] ['', ''] -- xe... -- ['', ''] ['', ''] ['', ''] ['', ''] ['', ''] ['', '']stderr: |
| ash | 62 read and "\ " stdout: -- xs... -- ['', ''] ['', ''] ['', ''] ['', ''] -- xe... -- ['', ''] ['', ''] ['', ''] ['', ''] ['', ''] ['', '']stderr: |
| bash | 63 read bash bug stdout: ['', '\x01']stderr: |
| mksh | 63 read bash bug stdout: ['', ' ']stderr: |
| zsh | 63 read bash bug stdout: ['', '']stderr: |
| ash | 63 read bash bug stdout: ['', '']stderr: |
| osh | 63 read bash bug stdout: ['', ' ']stderr: |