commit | 93cadc2fddbf8e640501dfd0ed0344119cb892ee | [log] [tgz] |
---|---|---|
author | Mike Frysinger <vapier@gentoo.org> | Wed May 27 17:06:25 2009 -0400 |
committer | Mike Frysinger <vapier@gentoo.org> | Wed May 27 17:06:25 2009 -0400 |
tree | b242123984a72e8ccd0da1c595b6c8a17111fd62 | |
parent | 673e945052fd6a5de31249a9a630f4f2bf7ec4ef [diff] |
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>