bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash needs builtin 'which' command


From: Dan Jacobson
Subject: bash needs builtin 'which' command
Date: 27 Mar 2001 20:56:37 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

$ which true
/bin/true
but that's not what gets called by
$ true
etc. etc.  It seems that the only way to get 'which' to know about
bash builtins is to make it a builtin itself [in addition to, not
replacement for, /usr/bin/which, etc.]  That seems to be the right way
to get it to give the correct answer from within bash [where it will
know about builtins] or from outside of bash [where it will only know
about /bin, etc.].

Same goes for "whence" or whatever other similar to 'which' commands
like that are around these days.
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]