114 passed, 3 OK, 0 not implemented, 1 BUG, 182 failed, 0 timeouts, 0 cases skipped
dash | 0 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 functionstderr: |
ash | 0 type -t -> function [ash stdout] Expected 'function\n', got 'f\n' stdout: fstderr: |
zsh | 0 type -t -> function [zsh stdout] Expected 'function\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad option: -t |
mksh | 0 type -t -> function [mksh stdout] Expected 'function\n', got '' [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[2]: whence: -t: unknown option |
ksh | 0 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 |
toysh | 0 type -t -> function [toysh stdout] Expected 'function\n', got '' [toysh status] Expected 0, got 127 stdout: stderr: sh: type: No such file or directory |
dash | 1 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 barstderr: dash: 1: shopt: not found |
ash | 1 type -t -> alias [ash stdout] Expected 'alias\n', got "alias foo='bar'\n" stdout: alias foo='bar'stderr: ash: shopt: not found |
zsh | 1 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 |
mksh | 1 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 |
ksh | 1 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 |
toysh | 1 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 |
dash | 2 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 builtinstderr: |
ash | 2 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 : [ localstderr: |
zsh | 2 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 |
mksh | 2 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 |
ksh | 2 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 |
toysh | 2 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 |
sush | 2 type -t -> builtin [sush stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\nbuiltin\n' Got 'file\nbuiltin\nbuiltin\nfile\n' [sush status] Expected 0, got 1 stdout: file builtin builtin filestderr: |
dash | 3 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 keywordstderr: |
ash | 3 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: |
zsh | 3 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 |
mksh | 3 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 |
ksh | 3 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 |
toysh | 3 type -t -> keyword [toysh stdout] Expected 'keyword\nkeyword\nkeyword\nkeyword\nkeyword\nkeyword\n' Got '' stdout: stderr: sh: type: No such file or directory |
sush | 3 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 keywordstderr: |
dash | 4 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 builtinstderr: |
ash | 4 type -t control flow [ash stdout] Expected 'builtin\nbuiltin\nbuiltin\nbuiltin\n', got 'break\ncontinue\nreturn\nexit\n' stdout: break continue return exitstderr: |
zsh | 4 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 |
mksh | 4 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 |
ksh | 4 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 |
toysh | 4 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 |
osh | 4 type -t control flow stdout: keyword keyword keyword keywordstderr: |
dash | 5 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/xargsstderr: |
ash | 5 type -t -> file [ash stdout] Expected 'file\nfile\n', got '/usr/bin/find\n/usr/bin/xargs\n' stdout: /usr/bin/find /usr/bin/xargsstderr: |
zsh | 5 type -t -> file [zsh stdout] Expected 'file\nfile\n', got '' [zsh status] Expected 0, got 1 stdout: stderr: zsh: bad option: -t |
mksh | 5 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 |
ksh | 5 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 |
toysh | 5 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 |
bash | 6 type -t doesn't find non-executable (like command -v) stdout: filestderr: |
dash | 6 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.4001052/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.4001052/06-dash/non-executablestderr: |
ash | 6 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.4001052/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.4001052/06-ash/non-executablestderr: |
toysh | 6 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 |
sush | 6 type -t doesn't find non-executable (like command -v) [sush stdout] Expected '', got 'file\n' [sush status] Expected 1, got 0 stdout: filestderr: |
dash | 7 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=127stderr: |
ash | 7 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=127stderr: |
zsh | 7 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 |
mksh | 7 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=1stderr: mksh: <stdin>[1]: whence: -t: unknown option |
ksh | 7 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=1stderr: E: ksh: <stdin>[1]: whence: -t: unknown option |
toysh | 7 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=127stderr: sh: type: No such file or directory |
sush | 7 type -t -> not found [sush stdout] Expected 'builtin\nfile\nstatus=1\n', got 'file\nfile\nstatus=1\n' stdout: file file status=1stderr: |
dash | 8 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/grepstderr: |
zsh | 8 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 |
mksh | 8 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 |
ksh | 8 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 |
toysh | 8 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 |
dash | 9 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 builtinstderr: |
ash | 9 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: pwdstderr: |
zsh | 9 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 |
mksh | 9 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 |
ksh | 9 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 |
toysh | 9 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 |
sush | 9 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/pwdstderr: |
dash | 10 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 foundstderr: |
ash | 10 type -p builtin -> not found [ash status] Expected 1, got 127 stdout: stderr: |
zsh | 10 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 foundstderr: |
mksh | 10 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 foundstderr: |
ksh | 10 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 foundstderr: |
toysh | 10 type -p builtin -> not found [toysh status] Expected 1, got 127 stdout: stderr: sh: type: No such file or directory |
dash | 11 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 builtinstderr: |
ash | 11 type -p builtin -> not a file [ash stdout] Expected '', got 'cd\ntype\ncommand\n' [ash status] Expected 0, got 127 stdout: cd type commandstderr: |
zsh | 11 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 foundstderr: |
mksh | 11 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 foundstderr: |
ksh | 11 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 foundstderr: |
toysh | 11 type -p builtin -> not a file [toysh status] Expected 0, got 127 stdout: stderr: sh: type: No such file or directory |
dash | 12 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 foundstderr: |
ash | 12 type -P builtin -> not found [ash status] Expected 1, got 127 stdout: stderr: |
toysh | 12 type -P builtin -> not found [toysh status] Expected 1, got 127 stdout: stderr: sh: type: No such file or directory |
dash | 13 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 builtinstderr: |
ash | 13 type -P builtin -> not a file [ash stdout] Expected '', got 'cd\ntype\ncommand\n' [ash status] Expected 1, got 127 stdout: cd type commandstderr: |
toysh | 13 type -P builtin -> not a file [toysh status] Expected 1, got 127 stdout: stderr: sh: type: No such file or directory |
sush | 13 type -P builtin -> not a file [sush status] Expected 1, got 0 stdout: stderr: |
dash | 14 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 builtinstderr: |
ash | 14 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 typestderr: |
zsh | 14 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 |
mksh | 14 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 |
ksh | 14 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 |
toysh | 14 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 |
sush | 14 type -P builtin -> not a file but file found [sush status] Expected 1, got 0 stdout: _tmp/mv _tmp/tar _tmp/grepstderr: |
dash | 15 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 foundstderr: |
ash | 15 type -f builtin -> not found [ash status] Expected 1, got 127 stdout: stderr: |
toysh | 15 type -f builtin -> not found [toysh status] Expected 1, got 127 stdout: stderr: sh: type: No such file or directory |
dash | 16 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 functionstderr: |
ash | 16 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 grepstderr: |
zsh | 16 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: |
mksh | 16 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 |
ksh | 16 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 |
toysh | 16 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 |
sush | 16 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 () { ls; }\ntar is a function\ntar () { ls; }\ngrep is a function\ngrep () { ls; }\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: |
dash | 17 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 functionstderr: |
ash | 17 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 functionstderr: |
zsh | 17 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 functionstderr: |
mksh | 17 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 functionstderr: mksh: <stdin>[2]: whence: -a: unknown option |
ksh | 17 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 functionstderr: E: ksh: <stdin>[2]: whence: -a: unknown option |
toysh | 17 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 |
sush | 17 type prints function source code [sush 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 function\nf () { echo; }\n\nf is a function\nf () { echo; }\n' stdout: f is a function f () { echo; } f is a function f () { echo; }stderr: |
osh | 17 type prints function source code stdout: f is a shell function f () { echo; } f is a shell function f () { echo; }stderr: |
dash | 18 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 functionstderr: |
ash | 18 type -ap -> function [ash stdout] Expected '', got 'f\n' stdout: fstderr: |
zsh | 18 type -ap -> function [zsh stdout] Expected '', got 'f not found\n' [zsh status] Expected 0, got 1 stdout: f not foundstderr: |
mksh | 18 type -ap -> function [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[2]: whence: -a: unknown option |
ksh | 18 type -ap -> function [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[2]: whence: -a: unknown option |
toysh | 18 type -ap -> function [toysh status] Expected 0, got 127 stdout: stderr: sh: type: No such file or directory |
sush | 18 type -ap -> function [sush status] Expected 0, got 1 stdout: stderr: |
bash | 19 type -a -> alias; prints alias definition stdout: ll is aliased to `ls -lha'stderr: |
dash | 19 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 -lhastderr: dash: 1: shopt: not found |
ash | 19 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 |
zsh | 19 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 -lhastderr: zsh: command not found: shopt |
mksh | 19 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 |
ksh | 19 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 |
toysh | 19 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 |
sush | 19 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: |
brush | 19 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: |
dash | 20 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 -lhastderr: dash: 1: shopt: not found |
ash | 20 type -ap -> alias [ash stdout] Expected '', got "alias ll='ls -lha'\n" stdout: alias ll='ls -lha'stderr: ash: shopt: not found |
zsh | 20 type -ap -> alias [zsh stdout] Expected '', got 'll not found\n' [zsh status] Expected 0, got 1 stdout: ll not foundstderr: zsh: command not found: shopt |
mksh | 20 type -ap -> alias [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[3]: whence: -a: unknown option |
ksh | 20 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 |
toysh | 20 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 |
sush | 20 type -ap -> alias [sush status] Expected 0, got 1 stdout: stderr: |
dash | 21 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 builtinstderr: |
ash | 21 type -a -> builtin [ash stdout] Expected 'cd is a shell builtin\n', got 'cd\n' stdout: cdstderr: |
mksh | 21 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 |
ksh | 21 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 |
toysh | 21 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 |
sush | 21 type -a -> builtin [sush status] Expected 0, got 1 stdout: cd is a shell builtinstderr: |
dash | 22 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 builtinstderr: |
ash | 22 type -ap -> builtin [ash stdout] Expected '', got 'cd\n' stdout: cdstderr: |
zsh | 22 type -ap -> builtin [zsh stdout] Expected '', got 'cd not found\n' [zsh status] Expected 0, got 1 stdout: cd not foundstderr: |
mksh | 22 type -ap -> builtin [mksh status] Expected 0, got 1 stdout: stderr: mksh: <stdin>[1]: whence: -a: unknown option |
ksh | 22 type -ap -> builtin [ksh status] Expected 0, got 1 stdout: stderr: E: ksh: <stdin>[1]: whence: -a: unknown option |
toysh | 22 type -ap -> builtin [toysh status] Expected 0, got 127 stdout: stderr: sh: type: No such file or directory |
sush | 22 type -ap -> builtin [sush status] Expected 0, got 1 stdout: stderr: |
dash | 23 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 keywordstderr: |
ash | 23 type -a -> keyword [ash stdout] Expected 'while is a shell keyword\n', got 'while\n' stdout: whilestderr: |
zsh | 23 type -a -> keyword [zsh stdout] Expected 'while is a shell keyword\n', got 'while is a reserved word\n' stdout: while is a reserved wordstderr: |
mksh | 23 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 |
ksh | 23 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 |
toysh | 23 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 |
sush | 23 type -a -> keyword [sush stdout] Expected 'while is a shell keyword\n', got 'while is reserved\n' [sush status] Expected 0, got 1 stdout: while is reservedstderr: |
dash | 24 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/datestderr: |
ash | 24 type -a -> file [ash stdout] Expected 'date is /bin/date\ndate is _tmp/date\n', got '/bin/date\n' stdout: /bin/datestderr: |
mksh | 24 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 |
ksh | 24 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 |
toysh | 24 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 |
sush | 24 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/datestderr: |
dash | 25 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/datestderr: |
ash | 25 type -ap -> file; abbreviated [ash stdout] Expected '/bin/date\n_tmp/date\n', got '/bin/date\n' stdout: /bin/datestderr: |
zsh | 25 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/datestderr: |
mksh | 25 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 |
ksh | 25 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 |
toysh | 25 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 |
sush | 25 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/datestderr: |
dash | 26 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 builtinstderr: |
ash | 26 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: pwdstderr: |
mksh | 26 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 |
ksh | 26 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 |
toysh | 26 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 |
sush | 26 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 builtinstderr: |
dash | 27 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 |
ash | 27 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 |
zsh | 27 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/pwdstderr: |
mksh | 27 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 |
ksh | 27 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 |
toysh | 27 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 |
sush | 27 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-normalizestderr: /home/andy/git/oils-for-unix/oils/../../shells/rusty_bash/target/release/sush: line 14: Unexpected token: () |
dash | 28 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 functionstderr: |
ash | 28 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 --- pwdstderr: |
zsh | 28 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/pwdstderr: |
mksh | 28 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/pwdstderr: mksh: <stdin>[7]: whence: -a: unknown option |
ksh | 28 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/pwdstderr: E: ksh: <stdin>[7]: whence: -a: unknown option |
toysh | 28 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 |
sush | 28 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: |
dash | 29 type -a -> executable not in PATH [dash status] Expected 1, got 127 stdout: -a: not found executable: not foundstderr: |
ash | 29 type -a -> executable not in PATH [ash status] Expected 1, got 127 stdout: stderr: |
toysh | 29 type -a -> executable not in PATH [toysh status] Expected 1, got 127 stdout: stderr: sh: type: No such file or directory |