261 passed, 9 OK, 55 not implemented, 23 BUG, 108 failed, 4 timeouts, 0 cases skipped 2 failed under osh
toysh | 0 read line from here doc [toysh stdout] Expected '[A\t\tB C D E]\n', got '[]\n' stdout: []stderr: sh: read: No such file or directory |
dash | 1 read from empty file stdout: ['status=1', ''] ['status=2', '']stderr: dash: 5: read: arg count |
toysh | 1 read from empty file [toysh stdout] Expected "['status=1', '']\n['status=1', '']\n", got "['status=127', '']\n['status=127', '']\n" stdout: ['status=127', ''] ['status=127', '']stderr: sh: read: No such file or directory sh: read: No such file or directory |
dash | 2 read /dev/null stdout: 2stderr: dash: 1: read: Illegal option -n |
toysh | 2 read /dev/null [toysh stdout] Expected '1\n', got '127\n' stdout: 127stderr: sh: read: No such file or directory |
dash | 3 read with zero args stdout: status=2stderr: dash: 1: read: arg count |
toysh | 3 read with zero args [toysh stdout] Expected 'status=0\n', got 'status=127\n' stdout: status=127stderr: sh: read: No such file or directory |
toysh | 4 read builtin with no newline returns status 1 [toysh stdout] Expected 'status=1\nZZZ\n', got 'status=127\n\n' [toysh status] Expected 0, got 127 stdout: status=127stderr: sh: read: No such file or directory sh: ZZZ: No such file or directory |
sush | 4 read builtin with no newline returns status 1 [sush stdout] Expected 'status=1\nZZZ\n', got 'status=0\nZZZ\n' stdout: status=0 ZZZstderr: |
brush | 4 read builtin with no newline returns status 1 [brush stdout] Expected 'status=1\nZZZ\n', got 'status=0\nZZZ\n' stdout: status=0 ZZZstderr: |
toysh | 5 read builtin splits value across multiple vars [toysh stdout] Expected '[A/B/C D E]\n', got '[//]\n' stdout: [//]stderr: sh: read: No such file or directory |
toysh | 6 read builtin with too few variables [toysh stdout] Expected '/A/B//\n', got '////\n' stdout: ////stderr: set: bad -o errexit set: bad -o nounset sh: read: No such file or directory |
dash | 7 read -n (with $REPLY) stdout: []stderr: dash: 2: read: Illegal option -n dash: 3: read: Illegal option -n |
zsh | 7 read -n (with $REPLY) stdout: []stderr: |
toysh | 7 read -n (with $REPLY) [toysh stdout] Expected "['1234', '12']\n", got '[]\n' stdout: []stderr: sh: read: No such file or directory sh: read: No such file or directory |
dash | 8 IFS= read -n (OSH regression: value saved in tempenv) stdout: ['']stderr: dash: 2: read: Illegal option -n |
zsh | 8 IFS= read -n (OSH regression: value saved in tempenv) stdout: ['']stderr: |
toysh | 8 IFS= read -n (OSH regression: value saved in tempenv) [toysh stdout] Expected "['X']\n", got "['']\n" stdout: ['']stderr: sh: read: No such file or directory |
dash | 9 read -n doesn't strip whitespace (bug fix) stdout: stderr: |
zsh | 9 read -n doesn't strip whitespace (bug fix) 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: |
ksh | 9 read -n doesn't strip whitespace (bug fix) [ksh stdout] Expected '[ a ]\n[ a b]\n[ a b ]\n\none var strips whitespace\n[a]\n[a b]\n[a b]\n\nthree vars\n[a] [] []\n[a] [b] []\n[a] [b] []\n' Got '[a]\n[a b]\n[a b]\n\none var strips whitespace\n[a]\n[a b]\n[a b]\n\nthree vars\n[a] [] []\n[a] [b] []\n[a] [b] []\n' stdout: [a] [a b] [a b] one var strips whitespace [a] [a b] [a b] three vars [a] [] [] [a] [b] [] [a] [b] []stderr: |
toysh | 9 read -n doesn't strip whitespace (bug fix) [toysh stdout] Expected '[ a ]\n[ a b]\n[ a b ]\n\none var strips whitespace\n[a]\n[a b]\n[a b]\n\nthree vars\n[a] [] []\n[a] [b] []\n[a] [b] []\n' Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 9 read -n doesn't strip whitespace (bug fix) [sush stdout] Expected '[ a ]\n[ a b]\n[ a b ]\n\none var strips whitespace\n[a]\n[a b]\n[a b]\n\nthree vars\n[a] [] []\n[a] [b] []\n[a] [b] []\n' Got '[a b]\n[a b]\n[a b]\n\none var strips whitespace\n[a b]\n[a b]\n[a b]\n\nthree vars\n[a] [] []\n[a] [b] []\n[a] [b] []\n' stdout: [a b] [a b] [a b] one var strips whitespace [a b] [a b] [a b] three vars [a] [] [] [a] [b] [] [a] [b] []stderr: |
dash | 10 read -d -n - respects delimiter and splits stdout: stderr: |
ash | 10 read -d -n - respects delimiter and splits stdout: stderr: |
zsh | 10 read -d -n - respects delimiter and splits 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: |
ksh | 10 read -d -n - respects delimiter and splits [ksh stdout] Expected 'delim c\n[ a]\n[ a ]\n[ a b]\n\none var\n[a]\n[a]\n[a b]\n\nthree vars\n[a] [] []\n[a] [] []\n[a] [b] []\n' Got 'delim c\n[a]\n[a]\n[a b]\n\none var\n[a]\n[a]\n[a b]\n\nthree vars\n[a] [] []\n[a] [] []\n[a] [b] []\n' stdout: delim c [a] [a] [a b] one var [a] [a] [a b] three vars [a] [] [] [a] [] [] [a] [b] []stderr: |
toysh | 10 read -d -n - respects delimiter and splits [toysh stdout] Expected 'delim c\n[ a]\n[ a ]\n[ a b]\n\none var\n[a]\n[a]\n[a b]\n\nthree vars\n[a] [] []\n[a] [] []\n[a] [b] []\n' Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
sush | 10 read -d -n - respects delimiter and splits [sush stdout] Expected 'delim c\n[ a]\n[ a ]\n[ a b]\n\none var\n[a]\n[a]\n[a b]\n\nthree vars\n[a] [] []\n[a] [] []\n[a] [b] []\n' Got 'delim c\n[a]\n[a b]\n[a b]\n\none var\n[a]\n[a b]\n[a b]\n\nthree vars\n[a] [] []\n[a] [] []\n[a] [b] []\n' stdout: delim c [a] [a b] [a b] one var [a] [a b] [a b] three vars [a] [] [] [a] [] [] [a] [b] []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: |
toysh | 11 read -n with invalid arg [toysh stdout] Expected 'status=2\n', got 'status=127\n' stdout: status=127stderr: sh: read: No such file or directory |
sush | 11 read -n with invalid arg [sush stdout] Expected 'status=2\n', got 'status=1\n' stdout: status=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: read: not_a_number: invalid number |
dash | 12 read -n from pipe stdout: stderr: |
ash | 12 read -n from pipe stdout: stderr: |
zsh | 12 read -n from pipe stdout: stderr: |
toysh | 12 read -n from pipe [toysh stdout] Expected 'reply=abc\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
dash | 13 read without args uses $REPLY, no splitting occurs (without -n) [dash stdout] Expected '[]\n[a b ]\n[]\n[a b line2]\n[]\n[a b \\]\n' Got '[]\n[a b]\n[]\n[a b line2]\n[]\n[a b \\]\n' stdout: [] [a b] [] [a b line2] [] [a b \]stderr: dash: 1: read: arg count dash: 5: read: arg count dash: 10: read: arg count |
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 | 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: |
ksh | 13 read without args uses $REPLY, no splitting occurs (without -n) [ksh stdout] Expected '[ a b ]\n[a b]\n[ a b line2]\n[a b line2]\n[ a b \\]\n[a b \\]\n' Got '[a b]\n[a b]\n[a b line2]\n[a b line2]\n[a b \\]\n[a b \\]\n' stdout: [a b] [a b] [a b line2] [a b line2] [a b \] [a b \]stderr: |
toysh | 13 read without args uses $REPLY, no splitting occurs (without -n) [toysh stdout] Expected '[ a b ]\n[a b]\n[ a b line2]\n[a b line2]\n[ a b \\]\n[a b \\]\n' Got '[]\n[]\n[]\n[]\n[]\n[]\n' [toysh status] Expected 0, got 127 stdout: [] [] [] [] [] []stderr: sh: read: No such file or directory sh: read: No such file or directory sh: read: No such file or directory sh: read: No such file or directory sh: read: No such file or directory sh: read: No such file or directory sh: a: No such file or directory |
sush | 13 read without args uses $REPLY, no splitting occurs (without -n) [sush stdout] Expected '[ a b ]\n[a b]\n[ a b line2]\n[a b line2]\n[ a b \\]\n[a b \\]\n' Got '[a b]\n[a b]\n[a b \\]\n[a b \\]\n[a b \\]\n[a b \\]\n' stdout: [a b] [a b] [a b \] [a b \] [a b \] [a b \]stderr: |
brush | 13 read without args uses $REPLY, no splitting occurs (without -n) [brush stdout] Expected '[ a b ]\n[a b]\n[ a b line2]\n[a b line2]\n[ a b \\]\n[a b \\]\n' Got '[ a b ]\n[a b]\n[ a b \\]\n[a b \\]\n[ a b \\]\n[a b \\]\n' stdout: [ a b ] [a b] [ a b \] [a b \] [ a b \] [a b \]stderr: |
dash | 14 read -n vs. -N stdout: stderr: |
ash | 14 read -n vs. -N stdout: stderr: |
zsh | 14 read -n vs. -N stdout: stderr: |
mksh | 14 read -n vs. -N stdout: read -n 'a' 'b' 'c' 'a' 'b' '' read -N 'a' 'b' 'c' 'a' 'b' ''stderr: |
ksh | 14 read -n vs. -N [ksh stdout] Expected "read -n\n'a' 'b' 'c'\n'a' 'b' ''\n\nread -N\n'a b c' '' ''\n'a b ' '' ''\n" Got "read -n\n'a' 'b' 'c'\n'a' 'b' ''\n\nread -N\n'a' 'b' 'c'\n'a' 'b' ''\n" stdout: read -n 'a' 'b' 'c' 'a' 'b' '' read -N 'a' 'b' 'c' 'a' 'b' ''stderr: |
toysh | 14 read -n vs. -N [toysh stdout] Expected "read -n\n'a' 'b' 'c'\n'a' 'b' ''\n\nread -N\n'a b c' '' ''\n'a b ' '' ''\n" Got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 14 read -n vs. -N [sush stdout] Expected "read -n\n'a' 'b' 'c'\n'a' 'b' ''\n\nread -N\n'a b c' '' ''\n'a b ' '' ''\n" Got "read -n\n'a' 'b' 'c'\n'a' 'b' 'c'\n\nread -N\n'a' 'b' 'c'\n'a' 'b' 'c'\n" stdout: read -n 'a' 'b' 'c' 'a' 'b' 'c' read -N 'a' 'b' 'c' 'a' 'b' 'c'stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 12: `-N': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 13: `-N': invalid name |
brush | 14 read -n vs. -N [brush stdout] Expected "read -n\n'a' 'b' 'c'\n'a' 'b' ''\n\nread -N\n'a b c' '' ''\n'a b ' '' ''\n" Got "read -n\n'a' 'b' 'c'\n'a' 'b' ''\n\nread -N\n'a' 'b' 'c'\n'a' 'b' ''\n" stdout: read -n 'a' 'b' 'c' 'a' 'b' '' read -N 'a' 'b' 'c' 'a' 'b' ''stderr: |
dash | 15 read -N ignores delimiters stdout: stderr: |
ash | 15 read -N ignores delimiters stdout: stderr: |
zsh | 15 read -N ignores delimiters stdout: stderr: |
toysh | 15 read -N ignores delimiters [toysh stdout] Expected 'a\nb\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 15 read -N ignores delimiters [sush stdout] Expected 'a\nb\n', got '\n' stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `-N': invalid name |
dash | 16 read will unset extranous vars stdout: 'a' 'b' ''stderr: |
zsh | 16 read will unset extranous vars stdout: 'a' 'b' '' 'b' '' ''stderr: |
toysh | 16 read will unset extranous vars [toysh stdout] Expected "'a' 'b' ''\n'a' 'b' ''\n", got "'' '' 'some value'\n" [toysh status] Expected 0, got 2 stdout: '' '' 'some value'stderr: sh: read: No such file or directory main: line 7: sh: syntax error: ( |
sush | 16 read will unset extranous vars [sush stdout] Expected "'a' 'b' ''\n'a' 'b' ''\n", got "'a' 'b' 'some value'\n'a' 'b' 'some value'\n" stdout: 'a' 'b' 'some value' 'a' 'b' 'some value'stderr: |
toysh | 17 read -r ignores backslashes [toysh stdout] Expected "['one two', 'one\\\\ two']\n", got "['', '']\n" stdout: ['', '']stderr: sh: read: No such file or directory sh: read: No such file or directory |
brush | 17 read -r ignores backslashes [brush stdout] Expected "['one two', 'one\\\\ two']\n", got "['one\\\\ two', 'one\\\\ two']\n" stdout: ['one\\ two', 'one\\ two']stderr: |
zsh | 18 read -r with other backslash escapes stdout: ['one twoethree', 'one\\ twoethree']stderr: |
mksh | 18 read -r with other backslash escapes stdout: ['one twoethree', 'one\\ twoethree']stderr: |
ksh | 18 read -r with other backslash escapes [ksh stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n" Got "['one twoethree', 'one\\\\ twoethree']\n" stdout: ['one twoethree', 'one\\ twoethree']stderr: |
toysh | 18 read -r with other backslash escapes [toysh stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n" Got "['', '']\n" stdout: ['', '']stderr: sh: read: No such file or directory sh: read: No such file or directory |
sush | 18 read -r with other backslash escapes [sush stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n" Got "['one two\\\\65three', 'one\\\\ two\\\\x65three']\n" stdout: ['one two\\65three', 'one\\ two\\x65three']stderr: |
brush | 18 read -r with other backslash escapes [brush stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n" Got "['one\\\\ two\\\\x65three', 'one\\\\ two\\\\x65three']\n" stdout: ['one\\ two\\x65three', 'one\\ two\\x65three']stderr: |
dash | 19 read with line continuation reads multiple physical lines stdout: ['-e onetwo', '-e one\\']stderr: |
toysh | 19 read with line continuation reads multiple physical lines [toysh stdout] Expected "['onetwo', 'one\\\\']\n", got "['', '']\n" stdout: ['', '']stderr: sh: read: No such file or directory sh: read: No such file or directory |
brush | 19 read with line continuation reads multiple physical lines [brush stdout] Expected "['onetwo', 'one\\\\']\n", got "['one\\\\', 'one\\\\']\n" stdout: ['one\\', 'one\\']stderr: |
toysh | 20 read multiple vars spanning many lines [toysh stdout] Expected "['one-two', 'three-four five-six', '']\n", got "['', '', '']\n" stdout: ['', '', '']stderr: sh: read: No such file or directory |
brush | 20 read multiple vars spanning many lines [brush stdout] Expected "['one-two', 'three-four five-six', '']\n", got "['one-\\\\', '', '']\n" stdout: ['one-\\', '', '']stderr: |
dash | 21 read -r with \n stdout: ['', '']stderr: |
zsh | 21 read -r with \n stdout: ['', '']stderr: |
mksh | 21 read -r with \n stdout: ['', '']stderr: |
ksh | 21 read -r with \n [ksh stdout] Expected "['nline', '\\\\nline']\n", got "['', '']\n" stdout: ['', '']stderr: |
toysh | 21 read -r with \n [toysh stdout] Expected "['nline', '\\\\nline']\n", got "['', '']\n" stdout: ['', '']stderr: sh: read: No such file or directory sh: read: No such file or directory |
brush | 21 read -r with \n [brush stdout] Expected "['nline', '\\\\nline']\n", got "['\\\\nline', '\\\\nline']\n" stdout: ['\\nline', '\\nline']stderr: |
dash | 22 read -s from pipe, not a terminal stdout: stderr: |
zsh | 22 read -s from pipe, not a terminal stdout: stderr: |
toysh | 22 read -s from pipe, not a terminal [toysh stdout] Expected 'foo\nba\n0\nb\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 22 read -s from pipe, not a terminal [sush stdout] Expected 'foo\nba\n0\nb\n', got '\n\n1\n\n' stdout: 1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `-s': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: `-s': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 7: `-s': invalid name |
dash | 23 read with IFS=$'\n' stdout: [a b c]stderr: |
toysh | 23 read with IFS=$'\n' [toysh stdout] Expected '[ a b c]\n', got '[]\n' stdout: []stderr: sh: read: No such file or directory |
sush | 23 read with IFS=$'\n' [sush stdout] Expected '[ a b c]\n', got '[a b c]\n' stdout: [a b c]stderr: |
toysh | 24 read multiple lines with IFS=: [toysh stdout] Expected '[ \\a |b: c|d e|]\n', got '[|||]\n' stdout: [|||]stderr: sh: read: No such file or directory |
sush | 24 read multiple lines with IFS=: [sush stdout] Expected '[ \\a |b: c|d e|]\n', got '[\\a |b: c|d e|]\n' stdout: [\a |b: c|d e|]stderr: |
brush | 24 read multiple lines with IFS=: [brush stdout] Expected '[ \\a |b: c|d e|]\n', got '[ \\\\a |b\\| c|d\\]\n' stdout: [ \\a |b\| c|d\]stderr: |
toysh | 25 read with IFS='' [toysh stdout] Expected '[ a b c d|]\n', got '[|]\n' stdout: [|]stderr: sh: read: No such file or directory |
sush | 25 read with IFS='' [sush stdout] Expected '[ a b c d|]\n', got '[a b c d|]\n' stdout: [a b c d|]stderr: |
dash | 26 read does not respect C backslash escapes stdout: stderr: |
ash | 26 read does not respect C backslash escapes stdout: abcdefghx65 145 istderr: |
zsh | 26 read does not respect C backslash escapes stdout: stderr: |
mksh | 26 read does not respect C backslash escapes stdout: d g h e 145 istderr: |
ksh | 26 read does not respect C backslash escapes [ksh stdout] Expected 'a b c d e f g h x65 145 i\n', got '\x07 \x08 d \x1b \x0c g h e 145 i\n' stdout: d g h e 145 istderr: |
toysh | 26 read does not respect C backslash escapes [toysh stdout] Expected 'a b c d e f g h x65 145 i\n', got '\n' stdout: stderr: sh: read: No such file or directory |
sush | 26 read does not respect C backslash escapes [sush stdout] Expected 'a b c d e f g h x65 145 i\n', got 'a \\b \\c \\d \\e \\f \\g \\h \\x65 \\145 \\i\n' stdout: a \b \c \d \e \f \g \h \x65 \145 \istderr: |
brush | 26 read does not respect C backslash escapes [brush stdout] Expected 'a b c d e f g h x65 145 i\n', got '\\a \\b \\c \\d \\e \\f \\g \\h \\x65 \\145 \\i\n' stdout: \a \b \c \d \e \f \g \h \x65 \145 \istderr: |
toysh | 27 dynamic scope used to set vars [toysh stdout] Expected 'ref: refs/heads/dev/andy\n', got '\n' stdout: stderr: sh: read: No such file or directory |
dash | 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 |
zsh | 28 read -a reads into array stdout: stderr: |
mksh | 28 read -a reads into array stdout: stderr: |
ksh | 28 read -a reads into array [ksh stdout] Expected "['a', 'b', 'c d']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\n" Got "['97', '32', '98', '32', '99', '92', '32', '100']\n[]\n[]\n[]\n" stdout: ['97', '32', '98', '32', '99', '92', '32', '100'] [] [] []stderr: E: ksh: <stdin>[14]: read: too many arguments |
toysh | 28 read -a reads into array [toysh stdout] Expected "['a', 'b', 'c d']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\n" Got '' [toysh status] Expected 0, got -6 stdout: stderr: munmap_chunk(): invalid pointer |
brush | 28 read -a reads into array [brush stdout] Expected "['a', 'b', 'c d']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\n" Got "['a', 'b', 'c\\\\', 'd']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\n" stdout: ['a', 'b', 'c\\', 'd'] ['a', 'b', 'c\\', 'd'] [] []stderr: |
dash | 29 read -d : (colon-separated records) stdout: v1= v1= v2= v1= v2= v3=stderr: dash: 3: read: Illegal option -d dash: 5: read: Illegal option -d dash: 7: read: Illegal option -d |
toysh | 29 read -d : (colon-separated records) [toysh stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got 'v1=\nv1= v2=\nv1= v2= v3=\n' [toysh status] Expected 0, got 127 stdout: v1= v1= v2= v1= v2= v3=stderr: sh: read: No such file or directory sh: read: No such file or directory sh: read: No such file or directory sh: a,b,c:d,e,f:g,h,i: No such file or directory |
dash | 30 read -d '' (null-separated records) stdout: v1= v1= v2= v1= v2= v3=stderr: dash: 3: read: Illegal option -d dash: 5: read: Illegal option -d dash: 7: read: Illegal option -d |
toysh | 30 read -d '' (null-separated records) [toysh stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got 'v1=\nv1= v2=\nv1= v2= v3=\n' [toysh status] Expected 0, got 127 stdout: v1= v1= v2= v1= v2= v3=stderr: sh: read: No such file or directory sh: read: No such file or directory sh: read: No such file or directory sh: a,b,cd,e,fg,h,i: No such file or directory |
sush | 30 read -d '' (null-separated records) [sush stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got 'v1=a,b,c\\0d,e,f\\0g,h,i\nv1=a,b,c\\0d,e,f\\0g,h,i v2=\nv1=a,b,c\\0d,e,f\\0g,h,i v2= v3=\n' stdout: v1=a,b,c\0d,e,f\0g,h,i v1=a,b,c\0d,e,f\0g,h,i v2= v1=a,b,c\0d,e,f\0g,h,i v2= v3=stderr: |
dash | 31 read -rd stdout: stderr: dash: 1: read: Illegal option -d |
toysh | 31 read -rd [toysh stdout] Expected 'foo\nbar\n', got '\n' stdout: stderr: sh: read: No such file or directory |
sush | 31 read -rd [sush stdout] Expected 'foo\nbar\n', got 'foo\n' stdout: foostderr: |
dash | 32 read -d when there's no delimiter stdout: 2 2stderr: dash: 1: read: Illegal option -d dash: 3: read: Illegal option -d |
toysh | 32 read -d when there's no delimiter [toysh stdout] Expected 'foo 0\nbar 1\n', got '127\n127\n' [toysh status] Expected 0, got 127 stdout: 127 127stderr: sh: read: No such file or directory sh: read: No such file or directory sh: foo:bar: No such file or directory |
sush | 32 read -d when there's no delimiter [sush stdout] Expected 'foo 0\nbar 1\n', got 'foo 0\nbar 0\n' stdout: foo 0 bar 0stderr: |
brush | 32 read -d when there's no delimiter [brush stdout] Expected 'foo 0\nbar 1\n', got 'foo 0\nbar 0\n' stdout: foo 0 bar 0stderr: |
dash | 33 read -t 0 tests if input is available stdout: stderr: |
zsh | 33 read -t 0 tests if input is available stdout: stderr: |
mksh | 33 read -t 0 tests if input is available stdout: stderr: |
ksh | 33 read -t 0 tests if input is available [ksh stdout] Expected '0\n0\nreply=\n0\n', got '1\n1\nreply=\n0\n' stdout: 1 1 reply= 0stderr: |
toysh | 33 read -t 0 tests if input is available [toysh stdout] Expected '0\n0\nreply=\n0\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 33 read -t 0 tests if input is available [sush stdout] Expected '0\n0\nreply=\n0\n', got '1\n1\nreply=\n0\n' stdout: 1 1 reply= 0stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 9: `-t': invalid name |
brush | 33 read -t 0 tests if input is available [brush stdout] Expected '0\n0\nreply=\n0\n', got '1\n2\nreply=\n0\n' stdout: 1 2 reply= 0stderr: [33m WARN[0m not yet implemented: read -t; see https://github.com/reubeno/brush/issues/227 error: invalid value '0.0' for '-t <SECONDS>': invalid digit found in string For more information, try '--help'. [33m WARN[0m not yet implemented: read -t; see https://github.com/reubeno/brush/issues/227 |
dash | 34 read -t 0.5 stdout: stderr: |
zsh | 34 read -t 0.5 stdout: 1stderr: |
mksh | 34 read -t 0.5 stdout: 1stderr: |
toysh | 34 read -t 0.5 [toysh stdout] Expected '1\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
brush | 34 read -t 0.5 [brush stdout] Expected '1\n', got '2\n' stdout: 2stderr: error: invalid value '0.5' for '-t <SECONDS>': invalid digit found in string For more information, try '--help'. |
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 |
toysh | 35 read -t -0.5 is invalid [toysh stdout] Expected '2\n', got '127\n' stdout: 127stderr: sh: read: No such file or directory |
sush | 35 read -t -0.5 is invalid [sush stdout] Expected '2\n', got '1\n' stdout: 1stderr: |
dash | 36 read -u stdout: stderr: |
mksh | 36 read -u stdout: stderr: |
ksh | 36 read -u [ksh stdout] Expected 'reply=hi\n', got '' [ksh status] Expected 0, got 2 stdout: stderr: E: ksh: <stdin>[5]: read: read-only: 3 |
toysh | 36 read -u [toysh stdout] Expected 'reply=hi\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 36 read -u [sush stdout] Expected 'reply=hi\n', got 'reply=\n' stdout: reply=stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `-u': invalid name |
osh | 36 read -u [osh stdout] Expected 'reply=hi\n', got 'reply=\n' stdout: reply=stderr: read -u 3 3<<EOF ^~~~ [ stdin ]:3: 'read' -u flag not implemented |
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: |
toysh | 37 read -u syntax error [toysh stdout] Expected 'status=2\n', got 'status=127\n' stdout: status=127stderr: sh: read: No such file or directory |
sush | 37 read -u syntax error [sush stdout] Expected 'status=2\n', got '' [sush status] Expected 0, got 1 stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: `-u': invalid name |
dash | 38 read -N doesn't respect delimiter, while read -n does stdout: stderr: |
ash | 38 read -N doesn't respect delimiter, while read -n does stdout: stderr: |
zsh | 38 read -N doesn't respect delimiter, while read -n does stdout: stderr: |
mksh | 38 read -N doesn't respect delimiter, while read -n does stdout: fooba foobastderr: |
ksh | 38 read -N doesn't respect delimiter, while read -n does [ksh stdout] Expected 'foo\nfooba\n', got 'fooba\nfooba\n' stdout: fooba foobastderr: |
toysh | 38 read -N doesn't respect delimiter, while read -n does [toysh stdout] Expected 'foo\nfooba\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 38 read -N doesn't respect delimiter, while read -n does [sush stdout] Expected 'foo\nfooba\n', got 'foo\n\n' stdout: foostderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `-N': invalid name |
dash | 39 read -p (not fully tested) stdout: stderr: |
zsh | 39 read -p (not fully tested) stdout: stderr: |
mksh | 39 read -p (not fully tested) stdout: stderr: |
ksh | 39 read -p (not fully tested) [ksh stdout] Expected 'hi\nh\n', got '\n\n' [ksh stderr] Expected u'', got 'E: ksh: <stdin>[3]: read: -p: no coprocess\nE: ksh: <stdin>[4]: read: -p: no coprocess\n' stdout: stderr: E: ksh: <stdin>[3]: read: -p: no coprocess E: ksh: <stdin>[4]: read: -p: no coprocess |
toysh | 39 read -p (not fully tested) [toysh stdout] Expected 'hi\nh\n', got '' [toysh stderr] Expected u'', got 'main: line 1: sh: syntax error: (\n' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 39 read -p (not fully tested) [sush stdout] Expected 'hi\nh\n', got '\n\n' [sush stderr] Expected u'', got "/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `-p': invalid name\n/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `-p': invalid name\n" stdout: stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: `-p': invalid name /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: `-p': invalid name |
brush | 39 read -p (not fully tested) [brush stdout] Expected 'hi\nh\n', got 'Phi\nPh\n' stdout: Phi Phstderr: |
bash | 40 read usage stdout: status=1stderr: bash: line 1: read: -1: invalid number |
zsh | 40 read usage stdout: stderr: zsh: not an identifier: -1 |
mksh | 40 read usage stdout: stderr: |
ksh | 40 read usage [ksh stdout] Expected 'status=2\n', got '' stdout: stderr: |
toysh | 40 read usage [toysh stdout] Expected 'status=2\n', got 'status=127\n' stdout: status=127stderr: sh: read: No such file or directory |
sush | 40 read usage [sush stdout] Expected 'status=2\n', got 'status=1\n' stdout: status=1stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: read: -1: invalid number |
dash | 41 read with smooshed args stdout: var=stderr: dash: 1: read: Illegal option -n |
zsh | 41 read with smooshed args stdout: var=stderr: zsh: bad option: -1 |
toysh | 41 read with smooshed args [toysh stdout] Expected 'var=h\n', got 'var=\n' [toysh status] Expected 0, got 127 stdout: var=stderr: sh: read: No such file or directory sh: hi: No such file or directory |
sush | 41 read with smooshed args [sush stdout] Expected 'var=h\n', got 'var=\n' stdout: var=stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: read: -1: invalid number |
dash | 42 read -r -d '' for NUL strings, e.g. find -print0 stdout: stderr: |
zsh | 42 read -r -d '' for NUL strings, e.g. find -print0 stdout: stderr: |
mksh | 42 read -r -d '' for NUL strings, e.g. find -print0 stdout: stderr: |
ksh | 42 read -r -d '' for NUL strings, e.g. find -print0 [ksh stdout] Expected '[./a\\b\\c\\d]\n', got '[./a\x08\\d]' stdout: [./a\d]stderr: |
toysh | 42 read -r -d '' for NUL strings, e.g. find -print0 [toysh stdout] Expected '[./a\\b\\c\\d]\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 42 read -r -d '' for NUL strings, e.g. find -print0 [sush stdout] Expected '[./a\\b\\c\\d]\n', got '' [sush status] Expected 0, got 101 stdout: stderr: thread 'main' panicked at src/proc_ctrl.rs:181:46: called `Result::unwrap()` on an `Err` value: NulError(10, [91, 46, 47, 97, 92, 98, 92, 99, 92, 100, 0, 93]) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace |
mksh | 43 read from redirected directory is non-fatal error stdout: stderr: |
ksh | 43 read from redirected directory is non-fatal error [ksh stdout] Expected 'status=1\n', got 'status=2\n' stdout: status=2stderr: E: ksh: <stdin>[5]: read: Is a directory |
toysh | 43 read from redirected directory is non-fatal error [toysh stdout] Expected 'status=1\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
dash | 44 read -n from directory stdout: stderr: |
ash | 44 read -n from directory stdout: stderr: |
mksh | 44 read -n from directory stdout: stderr: |
ksh | 44 read -n from directory [ksh stdout] Expected 'status=1\n', got 'status=2\n' stdout: status=2stderr: E: ksh: <stdin>[6]: read: Is a directory |
toysh | 44 read -n from directory [toysh stdout] Expected 'status=1\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
bash | 45 mapfile from directory (bash doesn't handle errors) stdout: status=0stderr: |
dash | 45 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
ash | 45 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
zsh | 45 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
mksh | 45 mapfile from directory (bash doesn't handle errors) stdout: stderr: |
ksh | 45 mapfile from directory (bash doesn't handle errors) [ksh stdout] Expected 'status=1\n', got 'status=127\n' stdout: status=127stderr: E: ksh: <stdin>[4]: mapfile: inaccessible or not found |
toysh | 45 mapfile from directory (bash doesn't handle errors) [toysh stdout] Expected 'status=1\n', got '' [toysh status] Expected 0, got 2 stdout: stderr: main: line 1: sh: syntax error: ( |
sush | 45 mapfile from directory (bash doesn't handle errors) [sush stdout] Expected 'status=1\n', got 'status=127\n' stdout: status=127stderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 4: mapfile: command not found |