Results for builtin-io.test.sh

statusoshosh_.pyosh_.cc
pass 622119
FAIL 74850
total696969
caseoshosh_.pyosh_.ccdescription
0pass pass pass echo dashes
1pass pass pass echo backslashes
2pass pass pass echo -e backslashes
3pass pass pass echo -en
4pass pass pass echo -ez (invalid flag)
5pass pass pass echo -e with embedded newline
6pass pass pass echo -e line continuation
7pass pass pass echo -e with C escapes
8pass pass pass echo -e with whitespace C escapes
9pass pass FAIL \0
details
10pass pass pass \c stops processing input
11pass pass pass echo -e with hex escape
12pass pass pass echo -e with octal escape
13pass pass pass echo -e with 4 digit unicode escape
14pass pass pass echo -e with 8 digit unicode escape
15pass FAIL FAIL \0377 is the highest octal byte
detailsdetails
16pass FAIL FAIL \0400 is one more than the highest octal byte
detailsdetails
17pass FAIL FAIL \0777 is out of range
detailsdetails
18pass FAIL FAIL incomplete hex escape
detailsdetails
19pass FAIL FAIL \x
detailsdetails
20pass FAIL FAIL incomplete octal escape
detailsdetails
21pass FAIL FAIL incomplete unicode escape
detailsdetails
22pass FAIL FAIL \u6
detailsdetails
23pass FAIL FAIL \0 \1 \8
detailsdetails
24pass FAIL FAIL Read builtin
detailsdetails
25pass FAIL FAIL Read from empty file
detailsdetails
26pass pass pass read /dev/null
27pass pass pass read with zero args
28pass FAIL FAIL Read builtin with no newline.
detailsdetails
29pass FAIL FAIL Read builtin with multiple variables
detailsdetails
30pass FAIL FAIL Read builtin with not enough variables
detailsdetails
31pass FAIL FAIL Read -n (with $REPLY)
detailsdetails
32pass FAIL FAIL IFS= read -n (OSH regression: value saved in tempenv)
detailsdetails
33pass FAIL FAIL Read uses $REPLY (without -n)
detailsdetails
34pass FAIL FAIL read -r ignores backslashes
detailsdetails
35pass FAIL FAIL read -r with other backslash escapes
detailsdetails
36pass FAIL FAIL read with line continuation reads multiple physical lines
detailsdetails
37pass FAIL FAIL read multiple vars spanning many lines
detailsdetails
38pass FAIL FAIL read -r with \n
detailsdetails
39pass FAIL FAIL read -s from pipe, not a terminal
detailsdetails
40pass FAIL FAIL Read with IFS=$'\n'
detailsdetails
41pass FAIL FAIL Read multiple lines with IFS=:
detailsdetails
42pass FAIL FAIL Read with IFS=''
detailsdetails
43pass FAIL FAIL Read should not respect C escapes.
detailsdetails
44pass FAIL FAIL Read builtin uses dynamic scope
detailsdetails
45pass FAIL FAIL read -a reads into array
detailsdetails
46pass pass pass read -n with invalid arg
47pass FAIL FAIL read returns correct number of bytes without EOF
detailsdetails
48pass FAIL FAIL read -d : (colon-separated records)
detailsdetails
49pass FAIL FAIL read -d '' (null-separated records)
detailsdetails
50pass FAIL FAIL read -rd
detailsdetails
51pass FAIL FAIL read -d when there's no delimiter
detailsdetails
52pass FAIL FAIL read -t 0 tests if input is available
detailsdetails
53FAIL FAIL FAIL read -t 0.5
detailsdetailsdetails
54pass pass FAIL read -t -0.5 is invalid
details
55FAIL FAIL FAIL read -u
detailsdetailsdetails
56pass pass pass read -u syntax error
57FAIL FAIL FAIL read -N doesn't respect delimiter, while read -n does
detailsdetailsdetails
58pass pass pass read usage
59pass FAIL FAIL read with smooshed args
detailsdetails
60pass FAIL FAIL mapfile
detailsdetails
61pass FAIL FAIL readarray (synonym for mapfile)
detailsdetails
62pass FAIL FAIL mapfile (array name): arr
detailsdetails
63FAIL FAIL FAIL mapfile (delimiter): -d delim
detailsdetailsdetails
64FAIL FAIL FAIL mapfile (delimiter): -d '' (null-separated)
detailsdetailsdetails
65pass FAIL FAIL mapfile (truncate delim): -t
detailsdetails
66pass FAIL FAIL mapfile -t doesn't remove \r
detailsdetails
67FAIL FAIL FAIL mapfile (store position): -O start
detailsdetailsdetails
68FAIL FAIL FAIL mapfile (input range): -s start -n count
detailsdetailsdetails
102 passed, 0 OK, 0 not implemented, 0 BUG, 105 failed, 0 timeouts, 0 cases skipped
7 failed under osh

Details on runs that didn't PASS

osh_.cc9 \0

[osh_.cc stdout] Expected u'ab\x00cd\n', got 'abcd\n'

stdout:
abcd
stderr:
osh_.py15 \0377 is the highest octal byte

[osh_.py stdout] Expected u' ff 37\n', got ''

stdout:
stderr: 
osh_.cc15 \0377 is the highest octal byte

[osh_.cc stdout] Expected u' ff 37\n', got ''

stdout:
stderr: 
osh_.py16 \0400 is one more than the highest octal byte

[osh_.py stdout] Expected u' 00 30\n', got ''

stdout:
stderr: 
osh_.cc16 \0400 is one more than the highest octal byte

[osh_.cc stdout] Expected u' 00 30\n', got ''

stdout:
stderr: 
osh_.py17 \0777 is out of range

[osh_.py stdout] Expected u' ff\n', got ''

stdout:
stderr: 
osh_.cc17 \0777 is out of range

[osh_.cc stdout] Expected u' ff\n', got ''

stdout:
stderr: 
osh_.py18 incomplete hex escape

[osh_.py stdout] Expected u' a b c d 006\n', got ''

stdout:
stderr: 
osh_.cc18 incomplete hex escape

[osh_.cc stdout] Expected u' a b c d 006\n', got ''

stdout:
stderr: 
osh_.py19 \x

[osh_.py stdout] Expected u' \\ x \\ x g \\n\n', got ''

stdout:
stderr: 
osh_.cc19 \x

[osh_.cc stdout] Expected u' \\ x \\ x g \\n\n', got ''

stdout:
stderr: 
osh_.py20 incomplete octal escape

[osh_.py stdout] Expected u' a b c d 004\n', got ''

stdout:
stderr: 
osh_.cc20 incomplete octal escape

[osh_.cc stdout] Expected u' a b c d 004\n', got ''

stdout:
stderr: 
osh_.py21 incomplete unicode escape

[osh_.py stdout] Expected u' a b c d 006\n', got ''

stdout:
stderr: 
osh_.cc21 incomplete unicode escape

[osh_.cc stdout] Expected u' a b c d 006\n', got ''

stdout:
stderr: 
osh_.py22 \u6

[osh_.py stdout] Expected u' 006\n', got ''

stdout:
stderr: 
osh_.cc22 \u6

[osh_.cc stdout] Expected u' 006\n', got ''

stdout:
stderr: 
osh_.py23 \0 \1 \8

[osh_.py stdout] Expected u' \\0 \\ 1 \\ 8\n', got ''

stdout:
stderr: 
osh_.cc23 \0 \1 \8

[osh_.cc stdout] Expected u' \\0 \\ 1 \\ 8\n', got ''

stdout:
stderr: 
osh_.py24 Read builtin

[osh_.py stdout] Expected '[A\t\tB C D E]\n', got '[]\n'

stdout:
[]
stderr:
osh_.cc24 Read builtin

[osh_.cc stdout] Expected '[A\t\tB C D E]\n', got '[]\n'

stdout:
[]
stderr:
osh_.py25 Read from empty file

[osh_.py stdout] Expected "['status=1', '']\n['status=1', '']\n", got "(cmd_value.Argv argv:[argv.py 'status=1' ''] arg_spids:[21 23 28])\n(cmd_value.Argv argv:[argv.py 'status=1' ''] arg_spids:[39 41 46])\n"

stdout:
(cmd_value.Argv argv:[argv.py 'status=1' ''] arg_spids:[21 23 28])
(cmd_value.Argv argv:[argv.py 'status=1' ''] arg_spids:[39 41 46])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc25 Read from empty file

[osh_.cc stdout] Expected "['status=1', '']\n['status=1', '']\n", got ''
[osh_.cc status] Expected 0, got -11

stdout:
stderr: 
osh_.py28 Read builtin with no newline.

[osh_.py stdout] Expected u'1\nZZZ\n', got ''

stdout:
stderr: 
osh_.cc28 Read builtin with no newline.

[osh_.cc stdout] Expected u'1\nZZZ\n', got ''

stdout:
stderr: 
osh_.py29 Read builtin with multiple variables

[osh_.py stdout] Expected '[A/B/C D E]\n', got '[//]\n'

stdout:
[//]
stderr:
osh_.cc29 Read builtin with multiple variables

[osh_.cc stdout] Expected '[A/B/C D E]\n', got '[//]\n'

stdout:
[//]
stderr:
osh_.py30 Read builtin with not enough variables

[osh_.py stdout] Expected '/A/B//\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  read x y z <<EOF
  ^~~~
[ stdin ]:3: fatal: Exiting with status 1 (command in PID 329)
osh_.cc30 Read builtin with not enough variables

[osh_.cc stdout] Expected '/A/B//\n', got ''
[osh_.cc status] Expected 0, got 1

stdout:
stderr: 
  read x y z <<EOF
  ^~~~
[ stdin ]:3: fatal: Exiting with status 1 (command in PID 349)
osh_.py31 Read -n (with $REPLY)

[osh_.py stdout] Expected "['1234', '12']\n", got '12345\n(cmd_value.Argv argv:[argv.py] arg_spids:[36])\n'

stdout:
12345
(cmd_value.Argv argv:[argv.py] arg_spids:[36])
stderr:
Unhandled SimpleCommand
osh_.cc31 Read -n (with $REPLY)

[osh_.cc stdout] Expected "['1234', '12']\n", got '12345\n(cmd_value.Argv argv:[argv.py] arg_spids:[36])\n'

stdout:
12345
(cmd_value.Argv argv:[argv.py] arg_spids:[36])
stderr:
Unhandled SimpleCommand
osh_.py32 IFS= read -n (OSH regression: value saved in tempenv)

[osh_.py stdout] Expected "['X']\n", got "XYZ\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[30 32])\n"

stdout:
XYZ
(cmd_value.Argv argv:[argv.py ''] arg_spids:[30 32])
stderr:
Unhandled SimpleCommand
osh_.cc32 IFS= read -n (OSH regression: value saved in tempenv)

[osh_.cc stdout] Expected "['X']\n", got "XYZ\n(cmd_value.Argv argv:[argv.py ''] arg_spids:[30 32])\n"

stdout:
XYZ
(cmd_value.Argv argv:[argv.py ''] arg_spids:[30 32])
stderr:
Unhandled SimpleCommand
osh_.py33 Read uses $REPLY (without -n)

[osh_.py stdout] Expected '123\n', got '123\n\n'

stdout:
123

stderr:
osh_.cc33 Read uses $REPLY (without -n)

[osh_.cc stdout] Expected '123\n', got '123\n\n'

stdout:
123

stderr:
osh_.py34 read -r ignores backslashes

[osh_.py stdout] Expected "['one two', 'one\\\\ two']\n", got "one\\ two\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])\n"

stdout:
one\ two
(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])
stderr:
Unhandled SimpleCommand
osh_.cc34 read -r ignores backslashes

[osh_.cc stdout] Expected "['one two', 'one\\\\ two']\n", got "one\\ two\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])\n"

stdout:
one\ two
(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])
stderr:
Unhandled SimpleCommand
osh_.py35 read -r with other backslash escapes

[osh_.py stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n", got "one\\ two\\x65three\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])\n"

stdout:
one\ two\x65three
(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])
stderr:
Unhandled SimpleCommand
osh_.cc35 read -r with other backslash escapes

[osh_.cc stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n", got "one\\ two\\x65three\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])\n"

stdout:
one\ two\x65three
(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])
stderr:
Unhandled SimpleCommand
osh_.py36 read with line continuation reads multiple physical lines

[osh_.py stdout] Expected "['onetwo', 'one\\\\']\n", got "one\\\ntwo\n\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[40 42 46])\n"

stdout:
one\
two

(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[40 42 46])
stderr:
Unhandled SimpleCommand
osh_.cc36 read with line continuation reads multiple physical lines

[osh_.cc stdout] Expected "['onetwo', 'one\\\\']\n", got "one\\\ntwo\n\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[40 42 46])\n"

stdout:
one\
two

(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[40 42 46])
stderr:
Unhandled SimpleCommand
osh_.py37 read multiple vars spanning many lines

[osh_.py stdout] Expected "['one-two', 'three-four five-six', '']\n", got "(cmd_value.Argv argv:[argv.py '' '' ''] arg_spids:[17 19 23 27])\n"

stdout:
(cmd_value.Argv argv:[argv.py '' '' ''] arg_spids:[17 19 23 27])
stderr:
Unhandled SimpleCommand
osh_.cc37 read multiple vars spanning many lines

[osh_.cc stdout] Expected "['one-two', 'three-four five-six', '']\n", got "(cmd_value.Argv argv:[argv.py '' '' ''] arg_spids:[17 19 23 27])\n"

stdout:
(cmd_value.Argv argv:[argv.py '' '' ''] arg_spids:[17 19 23 27])
stderr:
Unhandled SimpleCommand
osh_.py38 read -r with \n

[osh_.py stdout] Expected "['nline', '\\\\nline']\n", got "\\nline\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])\n"

stdout:
\nline
(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])
stderr:
Unhandled SimpleCommand
osh_.cc38 read -r with \n

[osh_.cc stdout] Expected "['nline', '\\\\nline']\n", got "\\nline\n(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])\n"

stdout:
\nline
(cmd_value.Argv argv:[argv.py '' ''] arg_spids:[31 33 37])
stderr:
Unhandled SimpleCommand
osh_.py39 read -s from pipe, not a terminal

[osh_.py stdout] Expected 'foo\nba\n0\nb\n', got ''

stdout:
stderr: 
osh_.cc39 read -s from pipe, not a terminal

[osh_.cc stdout] Expected 'foo\nba\n0\nb\n', got ''

stdout:
stderr: 
osh_.py40 Read with IFS=$'\n'

[osh_.py stdout] Expected '[ a b c]\n', got '[]\n'

stdout:
[]
stderr:
osh_.cc40 Read with IFS=$'\n'

[osh_.cc stdout] Expected '[ a b c]\n', got '[]\n'

stdout:
[]
stderr:
osh_.py41 Read multiple lines with IFS=:

[osh_.py stdout] Expected '[ \\a |b: c|d e|]\n', got '(cmd_value.Argv argv:[cat] arg_spids:[13])\n[|||]\n'

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[13])
[|||]
stderr:
Unhandled SimpleCommand
osh_.cc41 Read multiple lines with IFS=:

[osh_.cc stdout] Expected '[ \\a |b: c|d e|]\n', got '(cmd_value.Argv argv:[cat] arg_spids:[13])\n[|||]\n'

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[13])
[|||]
stderr:
Unhandled SimpleCommand
osh_.py42 Read with IFS=''

[osh_.py stdout] Expected '[ a b c d|]\n', got '[|]\n'

stdout:
[|]
stderr:
osh_.cc42 Read with IFS=''

[osh_.cc stdout] Expected '[ a b c d|]\n', got '[|]\n'

stdout:
[|]
stderr:
osh_.py43 Read should not respect C escapes.

[osh_.py stdout] Expected u'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\n'

stdout:
\a \b \c \d \e \f \g \h \x65 \145 \i

stderr:
osh_.cc43 Read should not respect C escapes.

[osh_.cc stdout] Expected u'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\n'

stdout:
\a \b \c \d \e \f \g \h \x65 \145 \i

stderr:
osh_.py44 Read builtin uses dynamic scope

[osh_.py stdout] Expected 'ref: refs/heads/dev/andy\n', got '\n'

stdout:
stderr: 
osh_.cc44 Read builtin uses dynamic scope

[osh_.cc stdout] Expected 'ref: refs/heads/dev/andy\n', got '\n'

stdout:
stderr: 
osh_.py45 read -a reads into array

[osh_.py stdout] Expected "['a', 'b', 'c d']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\n", got '(cmd_value.Argv argv:[argv.py] arg_spids:[44])\n(cmd_value.Argv argv:[argv.py] arg_spids:[74])\n(cmd_value.Argv argv:[argv.py] arg_spids:[85])\n(cmd_value.Argv argv:[argv.py] arg_spids:[96])\n'

stdout:
(cmd_value.Argv argv:[argv.py] arg_spids:[44])
(cmd_value.Argv argv:[argv.py] arg_spids:[74])
(cmd_value.Argv argv:[argv.py] arg_spids:[85])
(cmd_value.Argv argv:[argv.py] arg_spids:[96])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.cc45 read -a reads into array

[osh_.cc stdout] Expected "['a', 'b', 'c d']\n['a', 'b', 'c\\\\', 'd']\n[]\n[]\n", got '(cmd_value.Argv argv:[argv.py] arg_spids:[44])\n(cmd_value.Argv argv:[argv.py] arg_spids:[74])\n(cmd_value.Argv argv:[argv.py] arg_spids:[85])\n(cmd_value.Argv argv:[argv.py] arg_spids:[96])\n'

stdout:
(cmd_value.Argv argv:[argv.py] arg_spids:[44])
(cmd_value.Argv argv:[argv.py] arg_spids:[74])
(cmd_value.Argv argv:[argv.py] arg_spids:[85])
(cmd_value.Argv argv:[argv.py] arg_spids:[96])
stderr:
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
Unhandled SimpleCommand
osh_.py47 read returns correct number of bytes without EOF

[osh_.py stdout] Expected 'xxx\n', got ''

stdout:
stderr: 
osh_.cc47 read returns correct number of bytes without EOF

[osh_.cc stdout] Expected 'xxx\n', got ''

stdout:
stderr: 
osh_.py48 read -d : (colon-separated records)

[osh_.py stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got ''

stdout:
stderr: 
osh_.cc48 read -d : (colon-separated records)

[osh_.cc stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got ''

stdout:
stderr: 
osh_.py49 read -d '' (null-separated records)

[osh_.py stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got ''

stdout:
stderr: 
osh_.cc49 read -d '' (null-separated records)

[osh_.cc stdout] Expected 'v1=a,b,c\nv1=d v2=e,f\nv1=g v2=h v3=i\n', got ''

stdout:
stderr: 
osh_.py50 read -rd

[osh_.py stdout] Expected 'foo\nbar\n', got '\n'

stdout:
stderr: 
osh_.cc50 read -rd

[osh_.cc stdout] Expected 'foo\nbar\n', got ''
[osh_.cc status] Expected 0, got -11

stdout:
stderr: 
osh_.py51 read -d when there's no delimiter

[osh_.py stdout] Expected 'foo 0\nbar 1\n', got '1\n1\n'

stdout:
1
1
stderr:
osh_.cc51 read -d when there's no delimiter

[osh_.cc stdout] Expected 'foo 0\nbar 1\n', got '1\n1\n'

stdout:
1
1
stderr:
osh_.py52 read -t 0 tests if input is available

[osh_.py stdout] Expected '0\n0\nreply=\n0\n', got '0\n0\n0\n'

stdout:
0
0
0
stderr:
osh_.cc52 read -t 0 tests if input is available

[osh_.cc stdout] Expected '0\n0\nreply=\n0\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:944: double to_float(Str *): Assertion `0' failed.
osh53 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 ]:2: fatal: read -t isn't implemented (except t=0)
osh_.py53 read -t 0.5

[osh_.py stdout] Expected '1\n', got ''
[osh_.py status] Expected 0, got 1

stdout:
stderr: 
  read -t 0.5 < /dev/null
  ^~~~
[ stdin ]:2: fatal: read -t isn't implemented (except t=0)
osh_.cc53 read -t 0.5

[osh_.cc stdout] Expected '1\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:944: double to_float(Str *): Assertion `0' failed.
osh_.cc54 read -t -0.5 is invalid

[osh_.cc stdout] Expected '2\n', got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: mycpp/mylib.h:944: double to_float(Str *): Assertion `0' failed.
osh55 read -u

[osh stdout] Expected 'reply=hi\n', got 'reply=\n'

stdout:
reply=
stderr:
osh_.py55 read -u

[osh_.py stdout] Expected 'reply=hi\n', got 'reply=\n'

stdout:
reply=
stderr:
osh_.cc55 read -u

[osh_.cc stdout] Expected 'reply=hi\n', got 'reply=\n'

stdout:
reply=
stderr:
osh57 read -N doesn't respect delimiter, while read -n does

[osh stdout] Expected 'foo\nfooba\n', got 'fooba\nfooba\n'

stdout:
fooba
fooba
stderr:
  echo foobar | { read -N 5 -d b; echo $REPLY; }
                       ^~
[ stdin ]:3: 'read' doesn't accept flag -N
osh_.py57 read -N doesn't respect delimiter, while read -n does

[osh_.py stdout] Expected 'foo\nfooba\n', got ''

stdout:
stderr: 
osh_.cc57 read -N doesn't respect delimiter, while read -n does

[osh_.cc stdout] Expected 'foo\nfooba\n', got ''

stdout:
stderr: 
osh_.py59 read with smooshed args

[osh_.py stdout] Expected 'var=h\n', got ''

stdout:
stderr: 
osh_.cc59 read with smooshed args

[osh_.cc stdout] Expected 'var=h\n', got ''

stdout:
stderr: 
osh_.py60 mapfile

[osh_.py stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc60 mapfile

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.py61 readarray (synonym for mapfile)

[osh_.py stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'readarray is a builtin\n'

stdout:
readarray is a builtin
stderr:
osh_.cc61 readarray (synonym for mapfile)

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'readarray is a builtin\n'

stdout:
readarray is a builtin
stderr:
osh_.py62 mapfile (array name): arr

[osh_.py stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc62 mapfile (array name): arr

[osh_.cc stdout] Expected 'n=3\n[1\n]\n[3\n]\n[5\n]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh63 mapfile (delimiter): -d delim

[osh stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -d : arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
osh_.py63 mapfile (delimiter): -d delim

[osh_.py stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc63 mapfile (delimiter): -d delim

[osh_.cc stdout] Expected 'n=3\n[1:]\n[3:]\n[5:]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh64 mapfile (delimiter): -d '' (null-separated)

[osh stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -d '' arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -d
osh_.py64 mapfile (delimiter): -d '' (null-separated)

[osh_.py stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc64 mapfile (delimiter): -d '' (null-separated)

[osh_.cc stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.py65 mapfile (truncate delim): -t

[osh_.py stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc65 mapfile (truncate delim): -t

[osh_.cc stdout] Expected 'n=3\n[1]\n[3]\n[5]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.py66 mapfile -t doesn't remove \r

[osh_.py stdout] Expected "['1\\r', '3\\r', '5\\r']\n", got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc66 mapfile -t doesn't remove \r

[osh_.cc stdout] Expected "['1\\r', '3\\r', '5\\r']\n", got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh67 mapfile (store position): -O start

[osh stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'n=3\n[x]\n[y]\n[z]\n'

stdout:
n=3
[x]
[y]
[z]
stderr:
    mapfile -O 2 -t arr
            ^~
[ stdin ]:4: 'mapfile' doesn't accept flag -O
osh_.py67 mapfile (store position): -O start

[osh_.py stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc67 mapfile (store position): -O start

[osh_.cc stdout] Expected 'n=5\n[x]\n[y]\n[a0]\n[a1]\n[a2]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh68 mapfile (input range): -s start -n count

[osh stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'n=0\n[]\n'

stdout:
n=0
[]
stderr:
    mapfile -s 5 -n 3 -t arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -s
osh_.py68 mapfile (input range): -s start -n count

[osh_.py stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr:
osh_.cc68 mapfile (input range): -s start -n count

[osh_.cc stdout] Expected 'n=3\n[a5]\n[a6]\n[a7]\n', got 'mapfile is a builtin\n'

stdout:
mapfile is a builtin
stderr: