[PLUG] which_command

Marv lamsokvr at xprt.net
Wed Sep 1 16:41:01 UTC 2004


On Wed, 2004-09-01 at 15:50, Colin Kuskie wrote:
> On Wed, Sep 01, 2004 at 03:44:38PM -0700, Marv wrote:
> > On Wed, 2004-09-01 at 15:14, Rich Shepard wrote:
> > > On Wed, 1 Sep 2004, Marv wrote:
> > > 
> > > > How can I verify after the fact, what produced the output. Builtin or
> > > > /bin/echo?
> > > 
> > > Marv,
> > > 
> > >   I do believe that the shell's built-in commands take precedence. If you
> > > want to use the separate executable, specify the full path.
> > > 
> > > Rich
> > 
> > Agree.... Unless for some reason builtin is broke.
> > 
> > How would I know??
> 
> In tcsh, you can say:
> 
> 
> which command
> 
> and it will tell you what it is using.
> 
> If you say:
> 
> where command
> 
> then it will list all possible commands as determined by the search path.
> 
> Colin
> 
Bash has which and whereis  but, that only lists
names for commands in directories.  NOT builtin

This dosen't seem to answer the question.

Thanks for the feedback.

Marv





More information about the PLUG mailing list