hush: implement `type`
authorMike Frysinger <vapier@gentoo.org>
Wed, 27 May 2009 21:06:25 +0000 (17:06 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 27 May 2009 21:06:25 +0000 (17:06 -0400)
commit93cadc2fddbf8e640501dfd0ed0344119cb892ee
treeb242123984a72e8ccd0da1c595b6c8a17111fd62
parent673e945052fd6a5de31249a9a630f4f2bf7ec4ef
hush: implement `type`

Implement support for the POSIX `type` command.  Only POSIX stuff is
supported here, no bash extensions like -p or -P.

In the process, split the $PATH searching code out of builtin_source() and
into its own find_in_path() function so we don't duplicate it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
shell/hush.c