(which.info.gz) Example
Info Catalog
(which.info.gz) Return Value
(which.info.gz) Top
(which.info.gz) Bugs
5 Example
*********
The recommended way to use this utility is by adding an alias (C shell)
or shell function (Bourne shell) for `which' like the following:
[ba]sh:
which ()
{
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
export -f which
[t]csh:
alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
This will print the readable ~/ and ./ when starting which from your
prompt, while still printing the full path when used from a script:
> which q2
~/bin/q2
> echo `which q2`
/home/carlo/bin/q2
Info Catalog
(which.info.gz) Return Value
(which.info.gz) Top
(which.info.gz) Bugs
automatically generated by
info2html