bug-bash
[Top][All Lists]
Advanced

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

Re: bash needs builtin 'which' command


From: Chet Ramey
Subject: Re: bash needs builtin 'which' command
Date: Wed, 28 Mar 2001 08:35:16 -0500

> $ 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.].

Don't use `which'; use `type'.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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