Bizarre bash problem
Erik Price
erikprice at mac.com
Tue May 27 00:40:49 EDT 2003
On Friday, May 23, 2003, at 05:03 PM, Michael O'Donnell wrote:
> shell builtins. Since a separate program can
> only make guesses about the matter in question,
> why not ask the shell directly instead.
If you use "which" in shell scripts to determine the location of an
executable given its name, but you want to try using "type" instead,
you can make use of type with the -p option to avoid getting the
verbose output:
wintermute:~/down$ which bash
/bin/bash
wintermute:~/down$ type bash
bash is /bin/bash
wintermute:~/down$ type -p bash
/bin/bash
Erik
More information about the gnhlug-discuss
mailing list