Results for ysh-builtins.test.sh

statusosh
pass 36
FAIL 3
total39
caseoshdescription
0pass append onto BashArray a=(1 2)
1pass append onto var a = :| 1 2 |
2pass append onto var a = ['1', '2']
3pass append without typed arg
4pass append passed invalid type
5pass write --sep, --end, -n, varying flag syntax
6pass write --json
7pass write --j8
8pass write -e not supported
9pass write syntax error
10pass write --
11pass read flag usage
12pass read (&x) is usage error
13pass read --raw-line
14pass read --raw-line in a loop
15pass read --raw-line --with-eol in a loop
16pass Mixing read --raw-line with read -r
17pass read --raw-line --with-eol
18FAIL read --raw-line --j8
details
19pass echo builtin should disallow typed args - literal
20pass echo builtin should disallow typed args - variable
21FAIL read --all-lines
details
22FAIL read --all-lines --with-eol
details
23pass Can simulate read --all-lines with a proc and value.Place
24pass read --all
25pass read --all from directory is an error (EISDIR)
26pass read --num-bytes
27pass read -0 is like read -r -d ''
28pass read -0 myvar doesn't do anything with IFS
29pass simple_test_builtin
30pass long flags to test
31pass test --true; test --false
32pass More test --true --false
33pass Make sure [[ is not affected by --true --false
34pass push-registers
35pass push-registers usage
36pass redir
37pass type(x)
38pass source ///osh/two.sh and $LIB_OSH
36 passed, 0 OK, 0 not implemented, 0 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

osh18 read --raw-line --j8

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

stdout:
stderr: 
  echo $'u\'foo\'' | read --raw-line --j8
                                     ^~~~
[ stdin ]:1: 'read' got invalid flag '--j8'
osh21 read --all-lines

[osh stdout] Expected '1 2 3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'
osh22 read --all-lines --with-eol

[osh stdout] Expected '1\n2\n3\n', got '@nums\n'

stdout:
@nums
stderr:
  seq 3 | read --all-lines --with-eol :nums
               ^~~~~~~~~~~
[ stdin ]:1: 'read' got invalid flag '--all-lines'