Results for builtin-type-bash.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 28018550122928
ok 1000000002
BUG 1000000000
FAIL 03029222525301810
total30303030303030303030
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass type -t -> function
detailsdetailsdetailsdetailsdetailsdetails
1pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass type -t -> alias
detailsdetailsdetailsdetailsdetailsdetails
2pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -t -> builtin
detailsdetailsdetailsdetailsdetailsdetailsdetails
3pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -t -> keyword
detailsdetailsdetailsdetailsdetailsdetailsdetails
4pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass ok type -t control flow
detailsdetailsdetailsdetailsdetailsdetailsdetails
5pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass type -t -> file
detailsdetailsdetailsdetailsdetailsdetails
6BUG FAIL FAIL pass pass pass FAIL FAIL pass pass type -t doesn't find non-executable (like command -v)
detailsdetailsdetailsdetailsdetails
7pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass type -t -> not found
detailsdetailsdetailsdetailsdetailsdetails
8pass FAIL pass FAIL FAIL FAIL FAIL pass pass pass type -p and -P builtin -> file
detailsdetailsdetailsdetailsdetails
9pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -a -P gives multiple files
detailsdetailsdetailsdetailsdetailsdetailsdetails
10pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass type -p builtin -> not found
detailsdetailsdetailsdetailsdetailsdetails
11pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass pass type -p builtin -> not a file
detailsdetailsdetailsdetailsdetailsdetails
12pass FAIL FAIL pass pass pass FAIL pass pass pass type -P builtin -> not found
detailsdetailsdetails
13pass FAIL FAIL pass pass pass FAIL FAIL pass pass type -P builtin -> not a file
detailsdetailsdetailsdetails
14pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -P builtin -> not a file but file found
detailsdetailsdetailsdetailsdetailsdetailsdetails
15pass FAIL FAIL pass pass pass FAIL pass pass pass type -f builtin -> not found
detailsdetailsdetails
16pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -f builtin -> function and file exists
detailsdetailsdetailsdetailsdetailsdetailsdetails
17pass FAIL FAIL FAIL FAIL FAIL FAIL pass pass ok type prints function source code
detailsdetailsdetailsdetailsdetailsdetailsdetails
18pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -ap -> function
detailsdetailsdetailsdetailsdetailsdetailsdetails
19ok FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass type -a -> alias; prints alias definition
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
20pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -ap -> alias
detailsdetailsdetailsdetailsdetailsdetailsdetails
21pass FAIL FAIL pass FAIL FAIL FAIL FAIL pass pass type -a -> builtin
detailsdetailsdetailsdetailsdetailsdetails
22pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -ap -> builtin
detailsdetailsdetailsdetailsdetailsdetailsdetails
23pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -a -> keyword
detailsdetailsdetailsdetailsdetailsdetailsdetails
24pass FAIL FAIL pass FAIL FAIL FAIL FAIL pass pass type -a -> file
detailsdetailsdetailsdetailsdetailsdetails
25pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -ap -> file; abbreviated
detailsdetailsdetailsdetailsdetailsdetailsdetails
26pass FAIL FAIL pass FAIL FAIL FAIL FAIL pass pass type -a -> builtin and file
detailsdetailsdetailsdetailsdetailsdetails
27pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -a -> builtin and file and shell function
detailsdetailsdetailsdetailsdetailsdetailsdetails
28pass FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass type -ap -> builtin and file; doesn't print builtin or function
detailsdetailsdetailsdetailsdetailsdetailsdetails
29pass FAIL FAIL pass pass pass FAIL pass pass pass type -a -> executable not in PATH
detailsdetailsdetails
116 passed, 3 OK, 0 not implemented, 1 BUG, 180 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 type -t -> function

[dash stdout] Expected 'function\n' Got '-t: not found\nf is a shell function\n'
[dash status] Expected 0 Got 127

stdout:
-t: not found
f is a shell function
stderr:
ash0 type -t -> function

[ash stdout] Expected 'function\n' Got 'f\n'

stdout:
f
stderr:
zsh0 type -t -> function

[zsh stdout] Expected 'function\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: bad option: -t
mksh0 type -t -> function

[mksh stdout] Expected 'function\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[2]: whence: -t: unknown option
ksh0 type -t -> function

[ksh stdout] Expected 'function\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: whence: -t: unknown option
toysh0 type -t -> function

[toysh stdout] Expected 'function\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
dash1 type -t -> alias

[dash stdout] Expected 'alias\n' Got '-t: not found\nfoo is an alias for bar\n'
[dash status] Expected 0 Got 127

stdout:
-t: not found
foo is an alias for bar
stderr:
dash: 1: shopt: not found
ash1 type -t -> alias

[ash stdout] Expected 'alias\n' Got "alias foo='bar'\n"

stdout:
alias foo='bar'
stderr:
ash: shopt: not found
zsh1 type -t -> alias

[zsh stdout] Expected 'alias\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: command not found: shopt
zsh: bad option: -t
mksh1 type -t -> alias

[mksh stdout] Expected 'alias\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[3]: whence: -t: unknown option
ksh1 type -t -> alias

[ksh stdout] Expected 'alias\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[3]: whence: -t: unknown option
toysh1 type -t -> alias

[toysh stdout] Expected 'alias\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: shopt: No such file or directory
sh: alias: No such file or directory
sh: type: No such file or directory
dash2 type -t -> builtin

[dash stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got '-t: not found\necho is a shell builtin\nread is a shell builtin\n: is a special shell builtin\n[ is a shell builtin\ndeclare: not found\nlocal is a special shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-t: not found
echo is a shell builtin
read is a shell builtin
: is a special shell builtin
[ is a shell builtin
declare: not found
local is a special shell builtin
stderr:
ash2 type -t -> builtin

[ash stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got 'echo\nread\n:\n[\nlocal\n'
[ash status] Expected 0 Got 127

stdout:
echo
read
:
[
local
stderr:
zsh2 type -t -> builtin

[zsh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: bad option: -t
mksh2 type -t -> builtin

[mksh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -t: unknown option
ksh2 type -t -> builtin

[ksh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -t: unknown option
toysh2 type -t -> builtin

[toysh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush2 type -t -> builtin

[sush stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got 'builtin\nbuiltin\nbuiltin\nfile\n'
[sush status] Expected 0 Got 1

stdout:
builtin
builtin
builtin
file
stderr:
dash3 type -t -> keyword

[dash stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got '-t: not found\nfor is a shell keyword\ntime is /usr/bin/time\n! is a shell keyword\nfi is a shell keyword\ndo is a shell keyword\n{ is a shell keyword\n'
[dash status] Expected 0 Got 127

stdout:
-t: not found
for is a shell keyword
time is /usr/bin/time
! is a shell keyword
fi is a shell keyword
do is a shell keyword
{ is a shell keyword
stderr:
ash3 type -t -> keyword

[ash stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got 'for\n/usr/bin/time\n!\nfi\ndo\n{\n'

stdout:
for
/usr/bin/time
!
fi
do
{
stderr:
zsh3 type -t -> keyword

[zsh stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: bad option: -t
mksh3 type -t -> keyword

[mksh stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -t: unknown option
ksh3 type -t -> keyword

[ksh stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -t: unknown option
toysh3 type -t -> keyword

[toysh stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got ''

stdout:
stderr: 
sh: type: No such file or directory
sush3 type -t -> keyword

[sush stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got 'keyword\nfile\nkeyword\nkeyword\nkeyword\n'
[sush status] Expected 0 Got 1

stdout:
keyword
file
keyword
keyword
keyword
stderr:
dash4 type -t control flow

[dash stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n' Got '-t: not found\nbreak is a special shell builtin\ncontinue is a special shell builtin\nreturn is a special shell builtin\nexit is a special shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-t: not found
break is a special shell builtin
continue is a special shell builtin
return is a special shell builtin
exit is a special shell builtin
stderr:
ash4 type -t control flow

[ash stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n' Got 'break\ncontinue\nreturn\nexit\n'

stdout:
break
continue
return
exit
stderr:
zsh4 type -t control flow

[zsh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: bad option: -t
mksh4 type -t control flow

[mksh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -t: unknown option
ksh4 type -t control flow

[ksh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -t: unknown option
toysh4 type -t control flow

[toysh stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
osh4 type -t control flow

stdout:
keyword
keyword
keyword
keyword
stderr:
dash5 type -t -> file

[dash stdout] Expected 'file\nfile\n' Got '-t: not found\nfind is /usr/bin/find\nxargs is /usr/bin/xargs\n'
[dash status] Expected 0 Got 127

stdout:
-t: not found
find is /usr/bin/find
xargs is /usr/bin/xargs
stderr:
ash5 type -t -> file

[ash stdout] Expected 'file\nfile\n' Got '/usr/bin/find\n/usr/bin/xargs\n'

stdout:
/usr/bin/find
/usr/bin/xargs
stderr:
zsh5 type -t -> file

[zsh stdout] Expected 'file\nfile\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: bad option: -t
mksh5 type -t -> file

[mksh stdout] Expected 'file\nfile\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -t: unknown option
ksh5 type -t -> file

[ksh stdout] Expected 'file\nfile\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -t: unknown option
toysh5 type -t -> file

[toysh stdout] Expected 'file\nfile\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
bash6 type -t doesn't find non-executable (like command -v)

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

[dash stdout] Expected '' Got '-t: not found\nnon-executable is /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-type-bash.test.sh/06-dash/non-executable\n'
[dash status] Expected 1 Got 127

stdout:
-t: not found
non-executable is /home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-type-bash.test.sh/06-dash/non-executable
stderr:
ash6 type -t doesn't find non-executable (like command -v)

[ash stdout] Expected '' Got '/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-type-bash.test.sh/06-ash/non-executable\n'
[ash status] Expected 1 Got 0

stdout:
/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/builtin-type-bash.test.sh/06-ash/non-executable
stderr:
toysh6 type -t doesn't find non-executable (like command -v)

[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush6 type -t doesn't find non-executable (like command -v)

[sush stdout] Expected '' Got 'file\n'
[sush status] Expected 1 Got 0

stdout:
file
stderr:
dash7 type -t -> not found

[dash stdout] Expected 'builtin\nfile\nstatus=1\n' Got '-t: not found\necho is a shell builtin\nZZZ: not found\nfind is /usr/bin/find\n==: not found\nstatus=127\n'

stdout:
-t: not found
echo is a shell builtin
ZZZ: not found
find is /usr/bin/find
==: not found
status=127
stderr:
ash7 type -t -> not found

[ash stdout] Expected 'builtin\nfile\nstatus=1\n' Got 'echo\n/usr/bin/find\nstatus=127\n'

stdout:
echo
/usr/bin/find
status=127
stderr:
zsh7 type -t -> not found

[zsh stdout] Expected 'builtin\nfile\nstatus=1\n' Got ''
[zsh stderr] Expected '' Got 'zsh: = not found\n'
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: = not found
mksh7 type -t -> not found

[mksh stdout] Expected 'builtin\nfile\nstatus=1\n' Got 'status=1\n'
[mksh stderr] Expected '' Got 'mksh: <stdin>[1]: whence: -t: unknown option\n'

stdout:
status=1
stderr:
mksh: <stdin>[1]: whence: -t: unknown option
ksh7 type -t -> not found

[ksh stdout] Expected 'builtin\nfile\nstatus=1\n' Got 'status=1\n'
[ksh stderr] Expected '' Got 'E: ksh: <stdin>[1]: whence: -t: unknown option\n'

stdout:
status=1
stderr:
E: ksh: <stdin>[1]: whence: -t: unknown option
toysh7 type -t -> not found

[toysh stdout] Expected 'builtin\nfile\nstatus=1\n' Got 'status=127\n'
[toysh stderr] Expected '' Got 'sh: type: No such file or directory\n'

stdout:
status=127
stderr:
sh: type: No such file or directory
dash8 type -p and -P builtin -> file

[dash stdout] Expected '/tmp/mv\n/tmp/tar\n/tmp/grep\n--\n/tmp/mv\n/tmp/tar\n/tmp/grep\n' Got '-p: not found\nmv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n--\n-P: not found\nmv is a tracked alias for /tmp/mv\ntar is a tracked alias for /tmp/tar\ngrep is a tracked alias for /tmp/grep\n'
[dash status] Expected 0 Got 127

stdout:
-p: not found
mv is /tmp/mv
tar is /tmp/tar
grep is /tmp/grep
--
-P: not found
mv is a tracked alias for /tmp/mv
tar is a tracked alias for /tmp/tar
grep is a tracked alias for /tmp/grep
stderr:
zsh8 type -p and -P builtin -> file

[zsh stdout] Expected '/tmp/mv\n/tmp/tar\n/tmp/grep\n--\n/tmp/mv\n/tmp/tar\n/tmp/grep\n' Got 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n--\n'
[zsh status] Expected 0 Got 1

stdout:
mv is /tmp/mv
tar is /tmp/tar
grep is /tmp/grep
--
stderr:
zsh: bad option: -P
mksh8 type -p and -P builtin -> file

[mksh stdout] Expected '/tmp/mv\n/tmp/tar\n/tmp/grep\n--\n/tmp/mv\n/tmp/tar\n/tmp/grep\n' Got 'mv is a tracked alias for /tmp/mv\ntar is a tracked alias for /tmp/tar\ngrep is a tracked alias for /tmp/grep\n--\n'
[mksh status] Expected 0 Got 1

stdout:
mv is a tracked alias for /tmp/mv
tar is a tracked alias for /tmp/tar
grep is a tracked alias for /tmp/grep
--
stderr:
mksh: <stdin>[7]: whence: -P: unknown option
ksh8 type -p and -P builtin -> file

[ksh stdout] Expected '/tmp/mv\n/tmp/tar\n/tmp/grep\n--\n/tmp/mv\n/tmp/tar\n/tmp/grep\n' Got 'mv is a tracked alias for /tmp/mv\ntar is a tracked alias for /tmp/tar\ngrep is a tracked alias for /tmp/grep\n--\n'
[ksh status] Expected 0 Got 1

stdout:
mv is a tracked alias for /tmp/mv
tar is a tracked alias for /tmp/tar
grep is a tracked alias for /tmp/grep
--
stderr:
E: ksh: <stdin>[7]: whence: -P: unknown option
toysh8 type -p and -P builtin -> file

[toysh stdout] Expected '/tmp/mv\n/tmp/tar\n/tmp/grep\n--\n/tmp/mv\n/tmp/tar\n/tmp/grep\n' Got '\n'
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sh: type: No such file or directory
dash9 type -a -P gives multiple files

[dash stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got '-a: not found\n-P: not found\npwd is a shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-a: not found
-P: not found
pwd is a shell builtin
stderr:
ash9 type -a -P gives multiple files

[ash stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got 'pwd\n'
[ash status] Expected 0 Got 127

stdout:
pwd
stderr:
zsh9 type -a -P gives multiple files

[zsh stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got ''
[zsh status] Expected 0 Got 1

stdout:
stderr: 
zsh: bad option: -P
mksh9 type -a -P gives multiple files

[mksh stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[5]: whence: -a: unknown option
ksh9 type -a -P gives multiple files

[ksh stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[5]: whence: -a: unknown option
toysh9 type -a -P gives multiple files

[toysh stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush9 type -a -P gives multiple files

[sush stdout] Expected '_tmp/pwd\n/bin/pwd\n' Got '_tmp/pwd\n'
[sush status] Expected 0 Got 1

stdout:
_tmp/pwd
stderr:
dash10 type -p builtin -> not found

[dash stdout] Expected '' Got '-p: not found\nFOO: not found\nBAR: not found\nNOT_FOUND: not found\n'
[dash status] Expected 1 Got 127

stdout:
-p: not found
FOO: not found
BAR: not found
NOT_FOUND: not found
stderr:
ash10 type -p builtin -> not found

[ash status] Expected 1 Got 127

stdout:
stderr: 
zsh10 type -p builtin -> not found

[zsh stdout] Expected '' Got 'FOO not found\nBAR not found\nNOT_FOUND not found\n'

stdout:
FOO not found
BAR not found
NOT_FOUND not found
stderr:
mksh10 type -p builtin -> not found

[mksh stdout] Expected '' Got 'FOO not found\nBAR not found\nNOT_FOUND not found\n'

stdout:
FOO not found
BAR not found
NOT_FOUND not found
stderr:
ksh10 type -p builtin -> not found

[ksh stdout] Expected '' Got 'FOO not found\nBAR not found\nNOT_FOUND not found\n'

stdout:
FOO not found
BAR not found
NOT_FOUND not found
stderr:
toysh10 type -p builtin -> not found

[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory
dash11 type -p builtin -> not a file

[dash stdout] Expected '' Got '-p: not found\ncd is a shell builtin\ntype is a shell builtin\nbuiltin: not found\ncommand is a shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-p: not found
cd is a shell builtin
type is a shell builtin
builtin: not found
command is a shell builtin
stderr:
ash11 type -p builtin -> not a file

[ash stdout] Expected '' Got 'cd\ntype\ncommand\n'
[ash status] Expected 0 Got 127

stdout:
cd
type
command
stderr:
zsh11 type -p builtin -> not a file

[zsh stdout] Expected '' Got 'cd not found\ntype not found\nbuiltin not found\ncommand not found\n'
[zsh status] Expected 0 Got 1

stdout:
cd not found
type not found
builtin not found
command not found
stderr:
mksh11 type -p builtin -> not a file

[mksh stdout] Expected '' Got 'cd not found\ntype not found\nbuiltin not found\ncommand not found\n'
[mksh status] Expected 0 Got 1

stdout:
cd not found
type not found
builtin not found
command not found
stderr:
ksh11 type -p builtin -> not a file

[ksh stdout] Expected '' Got 'cd not found\ntype not found\nbuiltin not found\ncommand not found\n'
[ksh status] Expected 0 Got 1

stdout:
cd not found
type not found
builtin not found
command not found
stderr:
toysh11 type -p builtin -> not a file

[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
dash12 type -P builtin -> not found

[dash stdout] Expected '' Got '-P: not found\nFOO: not found\nBAR: not found\nNOT_FOUND: not found\n'
[dash status] Expected 1 Got 127

stdout:
-P: not found
FOO: not found
BAR: not found
NOT_FOUND: not found
stderr:
ash12 type -P builtin -> not found

[ash status] Expected 1 Got 127

stdout:
stderr: 
toysh12 type -P builtin -> not found

[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory
dash13 type -P builtin -> not a file

[dash stdout] Expected '' Got '-P: not found\ncd is a shell builtin\ntype is a shell builtin\nbuiltin: not found\ncommand is a shell builtin\n'
[dash status] Expected 1 Got 127

stdout:
-P: not found
cd is a shell builtin
type is a shell builtin
builtin: not found
command is a shell builtin
stderr:
ash13 type -P builtin -> not a file

[ash stdout] Expected '' Got 'cd\ntype\ncommand\n'
[ash status] Expected 1 Got 127

stdout:
cd
type
command
stderr:
toysh13 type -P builtin -> not a file

[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush13 type -P builtin -> not a file

[sush status] Expected 1 Got 0

stdout:
stderr: 
dash14 type -P builtin -> not a file but file found

[dash stdout] Expected '_tmp/mv\n_tmp/tar\n_tmp/grep\n' Got '-P: not found\nmv is a shell function\ntar is a shell function\ngrep is a shell function\ncd is a shell builtin\nbuiltin: not found\ncommand is a shell builtin\ntype is a shell builtin\n'
[dash status] Expected 1 Got 127

stdout:
-P: not found
mv is a shell function
tar is a shell function
grep is a shell function
cd is a shell builtin
builtin: not found
command is a shell builtin
type is a shell builtin
stderr:
ash14 type -P builtin -> not a file but file found

[ash stdout] Expected '_tmp/mv\n_tmp/tar\n_tmp/grep\n' Got 'mv\ntar\ngrep\ncd\ncommand\ntype\n'
[ash status] Expected 1 Got 127

stdout:
mv
tar
grep
cd
command
type
stderr:
zsh14 type -P builtin -> not a file but file found

[zsh stdout] Expected '_tmp/mv\n_tmp/tar\n_tmp/grep\n' Got ''

stdout:
stderr: 
zsh: bad option: -P
mksh14 type -P builtin -> not a file but file found

[mksh stdout] Expected '_tmp/mv\n_tmp/tar\n_tmp/grep\n' Got ''

stdout:
stderr: 
mksh: <stdin>[8]: whence: -P: unknown option
ksh14 type -P builtin -> not a file but file found

[ksh stdout] Expected '_tmp/mv\n_tmp/tar\n_tmp/grep\n' Got ''

stdout:
stderr: 
E: ksh: <stdin>[8]: whence: -P: unknown option
toysh14 type -P builtin -> not a file but file found

[toysh stdout] Expected '_tmp/mv\n_tmp/tar\n_tmp/grep\n' Got ''
[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush14 type -P builtin -> not a file but file found

[sush status] Expected 1 Got 0

stdout:
_tmp/mv
_tmp/tar
_tmp/grep
stderr:
dash15 type -f builtin -> not found

[dash status] Expected 1 Got 127

stdout:
-f: not found
FOO: not found
BAR: not found
NOT: not found
FOUND: not found
stderr:
ash15 type -f builtin -> not found

[ash status] Expected 1 Got 127

stdout:
stderr: 
toysh15 type -f builtin -> not found

[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory
dash16 type -f builtin -> function and file exists

[dash stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got '-f: not found\nmv is a shell function\ntar is a shell function\ngrep is a shell function\n'
[dash status] Expected 0 Got 127

stdout:
-f: not found
mv is a shell function
tar is a shell function
grep is a shell function
stderr:
ash16 type -f builtin -> function and file exists

[ash stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got 'mv\ntar\ngrep\n'

stdout:
mv
tar
grep
stderr:
zsh16 type -f builtin -> function and file exists

[zsh stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got 'mv () {\n\tls\n}\ntar () {\n\tls\n}\ngrep () {\n\tls\n}\n'

stdout:
mv () {
	ls
}
tar () {
	ls
}
grep () {
	ls
}
stderr:
mksh16 type -f builtin -> function and file exists

[mksh stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[8]: whence: -f: unknown option
ksh16 type -f builtin -> function and file exists

[ksh stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[8]: whence: -f: unknown option
toysh16 type -f builtin -> function and file exists

[toysh stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush16 type -f builtin -> function and file exists

[sush stdout] Expected 'mv is /tmp/mv\ntar is /tmp/tar\ngrep is /tmp/grep\n' Got 'mv is a function\nmv () \n{ \n ls\n}\ntar is a function\ntar () \n{ \n ls\n}\ngrep is a function\ngrep () \n{ \n ls\n}\n'
[sush status] Expected 0 Got 1

stdout:
mv is a function
mv () 
{ 
    ls
}
tar is a function
tar () 
{ 
    ls
}
grep is a function
grep () 
{ 
    ls
}
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 8: type: -f: not found
dash17 type prints function source code

[dash stdout] Expected 'f is a function\nf () \n{ \n echo\n}\n\nf is a function\nf () \n{ \n echo\n}\n' Got '-a: not found\nf is a shell function\n\nf is a shell function\n'

stdout:
-a: not found
f is a shell function

f is a shell function
stderr:
ash17 type prints function source code

[ash stdout] Expected 'f is a function\nf () \n{ \n echo\n}\n\nf is a function\nf () \n{ \n echo\n}\n' Got 'f\n\nf is a function\n'

stdout:
f

f is a function
stderr:
zsh17 type prints function source code

[zsh stdout] Expected 'f is a function\nf () \n{ \n echo\n}\n\nf is a function\nf () \n{ \n echo\n}\n' Got 'f is a shell function\n\nf is a shell function\n'

stdout:
f is a shell function

f is a shell function
stderr:
mksh17 type prints function source code

[mksh stdout] Expected 'f is a function\nf () \n{ \n echo\n}\n\nf is a function\nf () \n{ \n echo\n}\n' Got '\nf is a function\n'

stdout:
f is a function
stderr:
mksh: <stdin>[2]: whence: -a: unknown option
ksh17 type prints function source code

[ksh stdout] Expected 'f is a function\nf () \n{ \n echo\n}\n\nf is a function\nf () \n{ \n echo\n}\n' Got '\nf is a function\n'

stdout:
f is a function
stderr:
E: ksh: <stdin>[2]: whence: -a: unknown option
toysh17 type prints function source code

[toysh stdout] Expected 'f is a function\nf () \n{ \n echo\n}\n\nf is a function\nf () \n{ \n echo\n}\n' Got '\n'
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sh: type: No such file or directory
osh17 type prints function source code

stdout:
f is a shell function
f () { echo; }

f is a shell function
f () { echo; }
stderr:
dash18 type -ap -> function

[dash stdout] Expected '' Got '-ap: not found\nf is a shell function\n'
[dash status] Expected 0 Got 127

stdout:
-ap: not found
f is a shell function
stderr:
ash18 type -ap -> function

[ash stdout] Expected '' Got 'f\n'

stdout:
f
stderr:
zsh18 type -ap -> function

[zsh stdout] Expected '' Got 'f not found\n'
[zsh status] Expected 0 Got 1

stdout:
f not found
stderr:
mksh18 type -ap -> function

[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[2]: whence: -a: unknown option
ksh18 type -ap -> function

[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[2]: whence: -a: unknown option
toysh18 type -ap -> function

[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush18 type -ap -> function

[sush status] Expected 0 Got 1

stdout:
stderr: 
bash19 type -a -> alias; prints alias definition

stdout:
ll is aliased to `ls -lha'
stderr:
dash19 type -a -> alias; prints alias definition

[dash stdout] Expected 'll is an alias for "ls -lha"\n' Got '-a: not found\nll is an alias for ls -lha\n'
[dash status] Expected 0 Got 127

stdout:
-a: not found
ll is an alias for ls -lha
stderr:
dash: 1: shopt: not found
ash19 type -a -> alias; prints alias definition

[ash stdout] Expected 'll is an alias for "ls -lha"\n' Got "alias ll='ls -lha'\n"

stdout:
alias ll='ls -lha'
stderr:
ash: shopt: not found
zsh19 type -a -> alias; prints alias definition

[zsh stdout] Expected 'll is an alias for "ls -lha"\n' Got 'll is an alias for ls -lha\n'

stdout:
ll is an alias for ls -lha
stderr:
zsh: command not found: shopt
mksh19 type -a -> alias; prints alias definition

[mksh stdout] Expected 'll is an alias for "ls -lha"\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[3]: whence: -a: unknown option
ksh19 type -a -> alias; prints alias definition

[ksh stdout] Expected 'll is an alias for "ls -lha"\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[3]: whence: -a: unknown option
toysh19 type -a -> alias; prints alias definition

[toysh stdout] Expected 'll is an alias for "ls -lha"\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: shopt: No such file or directory
sh: alias: No such file or directory
sh: type: No such file or directory
sush19 type -a -> alias; prints alias definition

[sush stdout] Expected 'll is an alias for "ls -lha"\n' Got "ll is aliased to `ls -lha'\n"
[sush status] Expected 0 Got 1

stdout:
ll is aliased to `ls -lha'
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 3: type: -a: not found
brush19 type -a -> alias; prints alias definition

[brush stdout] Expected 'll is an alias for "ls -lha"\n' Got "ll is aliased to 'ls -lha'\n"

stdout:
ll is aliased to 'ls -lha'
stderr:
dash20 type -ap -> alias

[dash stdout] Expected '' Got '-ap: not found\nll is an alias for ls -lha\n'
[dash status] Expected 0 Got 127

stdout:
-ap: not found
ll is an alias for ls -lha
stderr:
dash: 1: shopt: not found
ash20 type -ap -> alias

[ash stdout] Expected '' Got "alias ll='ls -lha'\n"

stdout:
alias ll='ls -lha'
stderr:
ash: shopt: not found
zsh20 type -ap -> alias

[zsh stdout] Expected '' Got 'll not found\n'
[zsh status] Expected 0 Got 1

stdout:
ll not found
stderr:
zsh: command not found: shopt
mksh20 type -ap -> alias

[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: shopt: not found
mksh: <stdin>[3]: whence: -a: unknown option
ksh20 type -ap -> alias

[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: shopt: inaccessible or not found
E: ksh: <stdin>[3]: whence: -a: unknown option
toysh20 type -ap -> alias

[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: shopt: No such file or directory
sh: alias: No such file or directory
sh: type: No such file or directory
sush20 type -ap -> alias

[sush status] Expected 0 Got 1

stdout:
stderr: 
dash21 type -a -> builtin

[dash stdout] Expected 'cd is a shell builtin\n' Got '-a: not found\ncd is a shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-a: not found
cd is a shell builtin
stderr:
ash21 type -a -> builtin

[ash stdout] Expected 'cd is a shell builtin\n' Got 'cd\n'

stdout:
cd
stderr:
mksh21 type -a -> builtin

[mksh stdout] Expected 'cd is a shell builtin\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -a: unknown option
ksh21 type -a -> builtin

[ksh stdout] Expected 'cd is a shell builtin\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -a: unknown option
toysh21 type -a -> builtin

[toysh stdout] Expected 'cd is a shell builtin\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush21 type -a -> builtin

[sush status] Expected 0 Got 1

stdout:
cd is a shell builtin
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: type: -a: not found
dash22 type -ap -> builtin

[dash stdout] Expected '' Got '-ap: not found\ncd is a shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-ap: not found
cd is a shell builtin
stderr:
ash22 type -ap -> builtin

[ash stdout] Expected '' Got 'cd\n'

stdout:
cd
stderr:
zsh22 type -ap -> builtin

[zsh stdout] Expected '' Got 'cd not found\n'
[zsh status] Expected 0 Got 1

stdout:
cd not found
stderr:
mksh22 type -ap -> builtin

[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -a: unknown option
ksh22 type -ap -> builtin

[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -a: unknown option
toysh22 type -ap -> builtin

[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush22 type -ap -> builtin

[sush status] Expected 0 Got 1

stdout:
stderr: 
dash23 type -a -> keyword

[dash stdout] Expected 'while is a shell keyword\n' Got '-a: not found\nwhile is a shell keyword\n'
[dash status] Expected 0 Got 127

stdout:
-a: not found
while is a shell keyword
stderr:
ash23 type -a -> keyword

[ash stdout] Expected 'while is a shell keyword\n' Got 'while\n'

stdout:
while
stderr:
zsh23 type -a -> keyword

[zsh stdout] Expected 'while is a shell keyword\n' Got 'while is a reserved word\n'

stdout:
while is a reserved word
stderr:
mksh23 type -a -> keyword

[mksh stdout] Expected 'while is a shell keyword\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[1]: whence: -a: unknown option
ksh23 type -a -> keyword

[ksh stdout] Expected 'while is a shell keyword\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[1]: whence: -a: unknown option
toysh23 type -a -> keyword

[toysh stdout] Expected 'while is a shell keyword\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush23 type -a -> keyword

[sush status] Expected 0 Got 1

stdout:
while is a shell keyword
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 1: type: -a: not found
dash24 type -a -> file

[dash stdout] Expected 'date is /bin/date\ndate is _tmp/date\n' Got '-a: not found\ndate is /bin/date\n'
[dash status] Expected 0 Got 127

stdout:
-a: not found
date is /bin/date
stderr:
ash24 type -a -> file

[ash stdout] Expected 'date is /bin/date\ndate is _tmp/date\n' Got '/bin/date\n'

stdout:
/bin/date
stderr:
mksh24 type -a -> file

[mksh stdout] Expected 'date is /bin/date\ndate is _tmp/date\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[5]: whence: -a: unknown option
ksh24 type -a -> file

[ksh stdout] Expected 'date is /bin/date\ndate is _tmp/date\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[5]: whence: -a: unknown option
toysh24 type -a -> file

[toysh stdout] Expected 'date is /bin/date\ndate is _tmp/date\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush24 type -a -> file

[sush stdout] Expected 'date is /bin/date\ndate is _tmp/date\n' Got 'date is /bin/date\n'
[sush status] Expected 0 Got 1

stdout:
date is /bin/date
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: type: -a: not found
dash25 type -ap -> file; abbreviated

[dash stdout] Expected '/bin/date\n_tmp/date\n' Got '-ap: not found\ndate is /bin/date\n'
[dash status] Expected 0 Got 127

stdout:
-ap: not found
date is /bin/date
stderr:
ash25 type -ap -> file; abbreviated

[ash stdout] Expected '/bin/date\n_tmp/date\n' Got '/bin/date\n'

stdout:
/bin/date
stderr:
zsh25 type -ap -> file; abbreviated

[zsh stdout] Expected '/bin/date\n_tmp/date\n' Got 'date is /bin/date\ndate is _tmp/date\n'

stdout:
date is /bin/date
date is _tmp/date
stderr:
mksh25 type -ap -> file; abbreviated

[mksh stdout] Expected '/bin/date\n_tmp/date\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[5]: whence: -a: unknown option
ksh25 type -ap -> file; abbreviated

[ksh stdout] Expected '/bin/date\n_tmp/date\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[5]: whence: -a: unknown option
toysh25 type -ap -> file; abbreviated

[toysh stdout] Expected '/bin/date\n_tmp/date\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush25 type -ap -> file; abbreviated

[sush stdout] Expected '/bin/date\n_tmp/date\n' Got '/bin/date\n'
[sush status] Expected 0 Got 1

stdout:
/bin/date
stderr:
dash26 type -a -> builtin and file

[dash stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got '-a: not found\npwd is a shell builtin\n'
[dash status] Expected 0 Got 127

stdout:
-a: not found
pwd is a shell builtin
stderr:
ash26 type -a -> builtin and file

[ash stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got 'pwd\n'

stdout:
pwd
stderr:
mksh26 type -a -> builtin and file

[mksh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got ''
[mksh status] Expected 0 Got 1

stdout:
stderr: 
mksh: <stdin>[5]: whence: -a: unknown option
ksh26 type -a -> builtin and file

[ksh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got ''
[ksh status] Expected 0 Got 1

stdout:
stderr: 
E: ksh: <stdin>[5]: whence: -a: unknown option
toysh26 type -a -> builtin and file

[toysh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got ''
[toysh status] Expected 0 Got 127

stdout:
stderr: 
sh: type: No such file or directory
sush26 type -a -> builtin and file

[sush stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got 'pwd is a shell builtin\n'
[sush status] Expected 0 Got 1

stdout:
pwd is a shell builtin
stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: type: -a: not found
dash27 type -a -> builtin and file and shell function

[dash stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got '-a: not found\npwd is a shell builtin\n---\n'
[dash status] Expected 0 Got 2

stdout:
-a: not found
pwd is a shell builtin
---
stderr:
dash: 13: Syntax error: Bad function name
ash27 type -a -> builtin and file and shell function

[ash stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got 'pwd\n---\n'
[ash status] Expected 0 Got 2

stdout:
pwd
---
stderr:
ash: syntax error: bad function name
zsh27 type -a -> builtin and file and shell function

[zsh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd () {\n\techo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n'

stdout:
pwd is a shell builtin
pwd is /bin/pwd
pwd is _tmp/pwd
---
pwd is a function
pwd is a shell builtin
pwd is /bin/pwd
pwd is _tmp/pwd
---
pwd () {
	echo function-too
}
pwd is a shell builtin
pwd is /bin/pwd
pwd is _tmp/pwd
stderr:
mksh27 type -a -> builtin and file and shell function

[mksh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got '---\n---\n'

stdout:
---
---
stderr:
mksh: <stdin>[5]: whence: -a: unknown option
mksh: <stdin>[17]: whence: -a: unknown option
mksh: <stdin>[20]: whence: -a: unknown option
ksh27 type -a -> builtin and file and shell function

[ksh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got '---\n---\n'

stdout:
---
---
stderr:
E: ksh: <stdin>[5]: whence: -a: unknown option
E: ksh: <stdin>[17]: whence: -a: unknown option
E: ksh: <stdin>[20]: whence: -a: unknown option
toysh27 type -a -> builtin and file and shell function

[toysh stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got '---\n---\n'

stdout:
---
---
stderr:
sh: type: No such file or directory
sh: type: No such file or directory
sh: type: No such file or directory
sush27 type -a -> builtin and file and shell function

[sush stdout] Expected 'pwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a function\npwd () \n{ \n echo function-too\n}\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is a shell builtin\npwd is /bin/pwd\npwd is _tmp/pwd\n' Got 'pwd is a shell builtin\n---\n}\n\ntype -a pwd | osh-normalize\necho ---\n\ntype -a -f pwd | osh-normalize\n\n'

stdout:
pwd is a shell builtin
---
}

type -a pwd | osh-normalize
echo ---

type -a -f pwd | osh-normalize

stderr:
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 5: type: -a: not found
/home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 14: syntax error near unexpected token: ()
dash28 type -ap -> builtin and file; doesn't print builtin or function

[dash stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got '-ap: not found\npwd is a shell function\n---\n-p: not found\npwd is a shell function\n'
[dash status] Expected 0 Got 127

stdout:
-ap: not found
pwd is a shell function
---
-p: not found
pwd is a shell function
stderr:
ash28 type -ap -> builtin and file; doesn't print builtin or function

[ash stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got 'pwd\n---\npwd\n'

stdout:
pwd
---
pwd
stderr:
zsh28 type -ap -> builtin and file; doesn't print builtin or function

[zsh stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got 'pwd is /bin/pwd\npwd is _tmp/pwd\n---\npwd is /bin/pwd\n'

stdout:
pwd is /bin/pwd
pwd is _tmp/pwd
---
pwd is /bin/pwd
stderr:
mksh28 type -ap -> builtin and file; doesn't print builtin or function

[mksh stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got '---\npwd is a tracked alias for /bin/pwd\n'

stdout:
---
pwd is a tracked alias for /bin/pwd
stderr:
mksh: <stdin>[7]: whence: -a: unknown option
ksh28 type -ap -> builtin and file; doesn't print builtin or function

[ksh stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got '---\npwd is a tracked alias for /bin/pwd\n'

stdout:
---
pwd is a tracked alias for /bin/pwd
stderr:
E: ksh: <stdin>[7]: whence: -a: unknown option
toysh28 type -ap -> builtin and file; doesn't print builtin or function

[toysh stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got '---\n'
[toysh status] Expected 0 Got 127

stdout:
---
stderr:
sh: type: No such file or directory
sh: type: No such file or directory
sush28 type -ap -> builtin and file; doesn't print builtin or function

[sush stdout] Expected '/bin/pwd\n_tmp/pwd\n---\n' Got '---\n'

stdout:
---
stderr:
dash29 type -a -> executable not in PATH

[dash status] Expected 1 Got 127

stdout:
-a: not found
executable: not found
stderr:
ash29 type -a -> executable not in PATH

[ash status] Expected 1 Got 127

stdout:
stderr: 
toysh29 type -a -> executable not in PATH

[toysh status] Expected 1 Got 127

stdout:
stderr: 
sh: type: No such file or directory