> I fould something that got me curious about
> Redhat Linux 4.2. If I do "which date", I get
> the output /bin/date. If I do it for other binaries
> I get the full pathname of the binary in my path.
> However, if I do "which echo" I get nothing as
$ type echo
echo is a shell builtin
$ type which
which is aliased to `type -p'
$ help type
type: type [-apt] name [name ...]
For each NAME, indicate how it would be interpreted if used as a
If the -t option is used, returns a single word which is one of
`alias', `keyword', `function', `builtin', `file' or `', if NAME is an
alias, shell reserved word, shell function, shell builtin, disk file,
or unfound, respectively.
If the -p flag is used, either returns the name of the disk file
that would be executed, or nothing if -t would not return `file'.
If the -a flag is used, displays all of the places that contain an
executable named `file'. This includes aliases and functions, if and
only if the -p flag is not also used.
Type accepts -all, -path, and -type in place of -a, -p, and -t,
. _\\__[oo faeces from | Phones: +44 121 471 3789 (home)
. l___\\ /~~) /~~[ / [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
# ll l\\ ~~~~ ~ ~ ~ ~ | http://www.wcl.bham.ac.uk/~bam/
###LL LL\\ (Brian McCauley) |