Bizarre bash problem

ken at flyingtoasters.net ken at flyingtoasters.net
Fri May 23 16:08:35 EDT 2003


Which which is which?  [I've always wanted to type that.  I guess.]

Okay; a "which which" on both my Linux and Solaris boxen show that which
is an external command -- in other words, you need the which command.  It
usually hides in /usr/bin [both OSes], so is that in your path?

-Ken

> Hi,
>
> For some reason, 'which' is not working for me on a Solaris 8 box
> running bash.  'whence' appears to not be a recognized command, and  I'm
> out of ways to figure out the path down which a program lives  (I need
> to do this in a shell script.)
>
> When I type 'which bash' for example, I get know output.  I know bash
> must exist, since I'm running it for my shell.  I know it lives in
> /bin/bash, since ls tells me so, and file confirms it's a binary :)
>
> locate is not installed on this box, and therefore is not an option
> (since I don't "own" this box :(
>
> Any ideas?  I know I must be forgetting something.
>
> One thing I have definitely remembered is how nice working under
> Linux really is! :)
>
> Thanks,
> --
>
> Seeya,
> Paul
> --
> Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE
>
> 	It may look like I'm just sitting here doing nothing,
>    but I'm really actively waiting for all my problems to go away.
>
> 	 If you're not having fun, you're not doing it right!
>
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss






More information about the gnhlug-discuss mailing list