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. Printed 5/12/88 1
TYPE(1SH) COMMAND REFERENCE TYPE(1SH) RETURN VALUE [NO_ERRS] Command completed without error. CAVEATS The commands type and pathof(1) are similar, but not the 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), and execve(2). Printed 5/12/88 2
%%index%% na:288,113; sy:401,157; de:558,1023; ex:1581,295; rv:2236,177; ca:2413,456; se:2869,860; %%index%%000000000122