Results for builtin-bash.test.sh

statusbashosh
pass 2524
ok 20
BUG 10
FAIL 04
total2828
casebashoshdescription
0pass pass help
1pass pass bad help topic
2pass pass type -t -> function
3pass pass type -t -> alias
4pass pass type -t -> builtin
5pass pass type -t -> keyword
6ok pass type -t control flow
details
7pass pass type -t -> file
8BUG pass type -t doesn't find non-executable (like command -v)
details
9pass pass type -t -> not found
10pass pass type -p and -P builtin -> file
11pass pass type -p builtin -> not found
12pass pass type -p builtin -> not a file
13pass pass type -P builtin -> not found
14pass pass type -P builtin -> not a file
15pass pass type -P builtin -> not a file but file found
16pass pass type -f builtin -> not found
17ok pass type -f builtin -> function and file exists
details
18pass pass mapfile
19pass pass readarray (synonym for mapfile)
20pass pass mapfile (array name): arr
21pass FAIL mapfile (delimiter): -d delim
details
22pass FAIL mapfile (delimiter): -d '' (null-separated)
details
23pass pass mapfile (truncate delim): -t
24pass pass mapfile -t doesn't remove \r
25pass FAIL mapfile (store position): -O start
details
26pass FAIL mapfile (input range): -s start -n count
details
27pass pass mapfile / readarray stdin TODO: Fix me.
49 passed, 2 OK, 0 not implemented, 1 BUG, 4 failed, 0 timeouts, 0 cases skipped
4 failed under osh

Details on runs that didn't PASS

bash6 type -t control flow

stdout:
builtin
builtin
builtin
builtin
stderr:
bash8 type -t doesn't find non-executable (like command -v)

stdout:
file
stderr:
bash17 type -f builtin -> function and file exists

stdout:
mv is /tmp/mv
tar is /tmp/tar
grep is /tmp/grep
stderr:
osh21 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
osh22 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
osh25 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
osh26 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