Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ which(1SH) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

break(1sh)

cd(1sh)

continue(1sh)

csh(1csh)

echo(1sh)

eval(1sh)

exec(1sh)

exit(1sh)

export(1sh)

hash(1sh)

login(1)

pathof(1)

pwd(1sh)

read(1sh)

readonly(1sh)

return(1sh)

set(1sh)

sh(1sh)

shift(1sh)

test(1sh)

times(1sh)

trap(1sh)

ulimit(1sh)

umask(1sh)

unset(1sh)

wait(1sh)

execve(2)



TYPE(1SH)               COMMAND REFERENCE               TYPE(1SH)



NAME
     type, which - report command interpretation (sh built-in)

SYNOPSIS
     type [ name ]

DESCRIPTION
     Each name is described in terms of what would be executed
     when that command is executed.

     Builtin commands are described by a line like :  name is a
     shell builtin.

     Functions are described by a line like :  name is a
     function, followed by the text of the function.

     Hashed commands are described by a line like:  name is
     hashed (pathname), where pathname is the current known
     location of the command.

     Regular commands are described by a line like :  name is
     pathname, where pathname is the pathname of the command as
     found by the execution path.

     Commands that do not exist are described by a line like :
     name not found.

     The command which is a synonym for type.

EXAMPLES
     To find out what would be executed by typing ls, execute the
     command



          type ls


     The command



          type trap


     always prints trap is a shell builtin.

RETURN VALUE
     [NO_ERRS]      Command completed without error.

CAVEATS
     The commands type and pathof(1) are similar, but not the



Printed 10/17/86                                                1





TYPE(1SH)               COMMAND REFERENCE               TYPE(1SH)



     same.  Pathof only knows how to search the execution path
     and will only print filenames, whereas type knows about
     builtin commands and functions.

SEE ALSO
     break(1sh), cd(1sh), continue(1sh), csh(1csh), echo(1sh),
     eval(1sh), exec(1sh), exit(1sh), export(1sh), hash(1sh),
     login(1), pathof(1), pwd(1sh), read(1sh), readonly(1sh),
     return(1sh), set(1sh), sh(1sh), shift(1sh), test(1sh),
     times(1sh), trap(1sh), ulimit(1sh), umask(1sh), unset(1sh),
     wait(1sh), execve(2).












































Printed 10/17/86                                                2





































































%%index%%
na:72,97;
sy:169,109;
de:278,912;
ex:1190,258;
rv:1448,133;
ca:1581,150;1875,222;
se:2097,833;
%%index%%000000000128

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026