Results for builtin-type-bash.test.sh

statusbashosh
pass 2728
ok 22
BUG 10
total3030
casebashoshdescription
0pass pass type -t -> function
1pass pass type -t -> alias
2pass pass type -t -> builtin
3pass pass type -t -> keyword
4ok pass type -t control flow
details
5pass pass type -t -> file
6BUG pass type -t doesn't find non-executable (like command -v)
details
7pass pass type -t -> not found
8pass pass type -p and -P builtin -> file
9pass pass type -a -P gives multiple files
10pass pass type -p builtin -> not found
11pass pass type -p builtin -> not a file
12pass pass type -P builtin -> not found
13pass pass type -P builtin -> not a file
14pass pass type -P builtin -> not a file but file found
15pass pass type -f builtin -> not found
16pass pass type -f builtin -> function and file exists
17pass ok type -a -> function; prints shell source code
details
18pass pass type -ap -> function
19ok pass type -a -> alias; prints alias definition
details
20pass pass type -ap -> alias
21pass pass type -a -> builtin
22pass pass type -ap -> builtin
23pass pass type -a -> keyword
24pass pass type -a -> file
25pass pass type -ap -> file; abbreviated
26pass pass type -a -> builtin and file
27pass ok type -a -> builtin and file and shell function
details
28pass pass type -ap -> builtin and file; doesn't print builtin or function
29pass pass type -a -> executable not in PATH
55 passed, 4 OK, 0 not implemented, 1 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

bash4 type -t control flow

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

stdout:
file
stderr:
osh17 type -a -> function; prints shell source code

stdout:
f is a shell function
stderr:
bash19 type -a -> alias; prints alias definition

stdout:
ll is aliased to `ls -lha'
stderr:
osh27 type -a -> builtin and file and shell function

stdout:
pwd is a shell builtin
pwd is /bin/pwd
pwd is _tmp/pwd
---
pwd is a shell function
pwd is a shell builtin
pwd is /bin/pwd
pwd is _tmp/pwd
---
pwd is a shell builtin
pwd is /bin/pwd
pwd is _tmp/pwd
stderr: