Results for builtin-io.test.sh

statusoshosh_.pyosh_.cc
pass 552017
FAIL 54043
total606060
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 pass FAIL Read from empty file
details
26pass pass FAIL read /dev/null
details
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 with IFS=$'\n'
detailsdetails
40pass FAIL FAIL Read multiple lines with IFS=:
detailsdetails
41pass FAIL FAIL Read with IFS=''
detailsdetails
42pass FAIL FAIL Read should not respect C escapes.
detailsdetails
43pass FAIL FAIL Read builtin uses dynamic scope
detailsdetails
44pass FAIL FAIL read -a reads into array
detailsdetails
45pass pass pass read -n with invalid arg
46pass FAIL FAIL read returns correct number of bytes without EOF
detailsdetails
47pass FAIL FAIL read -d : (colon-separated records)
detailsdetails
48pass FAIL FAIL read -d '' (null-separated records)
detailsdetails
49pass FAIL FAIL read -rd
detailsdetails
50pass FAIL FAIL read -d when there's no delimiter
detailsdetails
51pass pass pass read usage
52pass FAIL FAIL mapfile
detailsdetails
53pass FAIL FAIL readarray (synonym for mapfile)
detailsdetails
54pass FAIL FAIL mapfile (array name): arr
detailsdetails
55FAIL FAIL FAIL mapfile (delimeter): -d delim
detailsdetailsdetails
56FAIL FAIL FAIL mapfile (delimiter): -d '' (null-separated)
detailsdetailsdetails
57FAIL FAIL FAIL mapfile (truncate delim): -t
detailsdetailsdetails
58FAIL FAIL FAIL mapfile (store position): -O start
detailsdetailsdetails
59FAIL FAIL FAIL mapfile (input range): -s start -n count
detailsdetailsdetails
92 passed, 0 OK, 0 not implemented, 0 BUG, 88 failed, 0 timeouts, 0 cases skipped
5 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 ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
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_.cc26 read /dev/null

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

stdout:
2
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 ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
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 22203)
osh_.cc30 Read builtin with not enough variables

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py31 Read -n (with $REPLY)

[osh_.py stdout] Expected "['1234', '12']\n", got '[]\n12345\n'

stdout:
[]
12345
stderr:
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 "['']\nXYZ\n"

stdout:
['']
XYZ
stderr:
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 status] Expected 0, got -6

stdout:
123
stderr:
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py34 read -r ignores backslashes

[osh_.py stdout] Expected "['one two', 'one\\\\ two']\n", got "['', '']\none\\ two\n"

stdout:
['', '']
one\ two
stderr:
osh_.cc34 read -r ignores backslashes

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

stdout:
one\ two
stderr:
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py35 read -r with other backslash escapes

[osh_.py stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n", got "['', '']\none\\ two\\x65three\n"

stdout:
['', '']
one\ two\x65three
stderr:
osh_.cc35 read -r with other backslash escapes

[osh_.cc stdout] Expected "['one twox65three', 'one\\\\ two\\\\x65three']\n", got 'one\\ two\\x65three\n'
[osh_.cc status] Expected 0, got -6

stdout:
one\ two\x65three
stderr:
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py36 read with line continuation reads multiple physical lines

[osh_.py stdout] Expected "['onetwo', 'one\\\\']\n", got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc36 read with line continuation reads multiple physical lines

[osh_.cc stdout] Expected "['onetwo', 'one\\\\']\n", got 'one\\\ntwo\n\n'
[osh_.cc status] Expected 0, got -6

stdout:
one\
two

stderr:
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py37 read multiple vars spanning many lines

[osh_.py stdout] Expected "['one-two', 'three-four five-six', '']\n", got "['', '', '']\n"

stdout:
['', '', '']
stderr:
osh_.cc37 read multiple vars spanning many lines

[osh_.cc stdout] Expected "['one-two', 'three-four five-six', '']\n", got ''
[osh_.cc status] Expected 0, got -6

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py38 read -r with \n

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

stdout:
['', '']
\nline
stderr:
osh_.cc38 read -r with \n

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

stdout:
\nline
stderr:
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py39 Read with IFS=$'\n'

[osh_.py stdout] Expected '[ a b c]\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc39 Read with IFS=$'\n'

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py40 Read multiple lines with IFS=:

[osh_.py stdout] Expected '[ \\a |b: c|d e|]\n', got ''
[osh_.py status] Expected 0, got 1
[osh_.py stderr] Found 'Traceback (most recent'

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 417, in <module>
    status = main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/osh_eval.py", line 309, in main
    cmd_flags=cmd_eval.IsMainProgram)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1461, in ExecuteAndCatch
    status = self._Execute(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 1341, in _Execute
    status, check_errexit = self._Dispatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_eval.py", line 837, in _Dispatch
    val = self.word_ev.EvalRhsWord(pair.rhs)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1602, in EvalRhsWord
    return self.EvalWordToString(w)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1498, in EvalWordToString
    self._EvalWordPart(p, part_vals, quoted=False)
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1332, in _EvalWordPart
    sv = self._EvalCommandSub(part.child, quoted) # type: part_value_t
  File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1959, in _EvalCommandSub
    stdout = self.shell_ex.RunCommandSub(node)
AttributeError: 'NoneType' object has no attribute 'RunCommandSub'
osh_.cc40 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'
[osh_.cc status] Expected 0, got -6

stdout:
(cmd_value.Argv argv:[cat] arg_spids:[13])
stderr:
Unhandled SimpleCommand
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py41 Read with IFS=''

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

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

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py42 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_.cc42 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'
[osh_.cc status] Expected 0, got -6

stdout:
\a \b \c \d \e \f \g \h \x65 \145 \i
stderr:
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py43 Read builtin uses dynamic scope

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

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

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

stdout:
stderr: 
osh_eval.dbg: cpp/posix.h:94: Str *posix::read(int, int): Assertion `0' failed.
osh_.py44 read -a reads into array

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

stdout:
[]
[]
[]
[]
stderr:
osh_.cc44 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_.py46 read returns correct number of bytes without EOF

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

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

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

stdout:
stderr: 
osh_.py47 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_.cc47 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_.py48 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_.cc48 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_.py49 read -rd

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

stdout:
stderr: 
osh_.cc49 read -rd

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

stdout:
stderr: 
osh_.py50 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_.cc50 read -d when there's no delimiter

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

stdout:
2
2
stderr:
osh_.py52 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_.cc52 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_.py53 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_.cc53 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_.py54 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_.cc54 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:
osh55 mapfile (delimeter): -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_.py55 mapfile (delimeter): -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_.cc55 mapfile (delimeter): -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:
osh56 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_.py56 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_.cc56 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:
osh57 mapfile (truncate delim): -t

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

stdout:
n=0
[]
stderr:
    mapfile -t arr
            ^~
[ stdin ]:3: 'mapfile' doesn't accept flag -t
osh_.py57 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_.cc57 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:
osh58 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_.py58 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_.cc58 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:
osh59 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_.py59 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_.cc59 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: