[lug] Re: [CLUE-Tech] Why can't bash find vi?

Kevin Fenzi kevin at scrye.com
Fri Oct 12 15:37:35 MDT 2001


Jed> On Fri, 12 Oct 2001 14:54:02 -0600
Jed> Dave Anselmi <anselmi at americanisp.net> wrote:

>> "Jed S. Baer" wrote: > $ which vi > /usr/local/bin/vi > $ vi >
>> bash: /bin/vi: No such file or directory
 
>> But as to the error message you get, it is not a bash error, it's a
>> vi error.  Bash is running /bin/vi, which is complaining because it
>> can't find a file.  Usually (in my experience) this is caused by
>> missing libraries but that is strange on an rpm system.  Look to
>> see if there is a /bin/vi file or link.  If there is, delete it
>> since you don't want it there.

Jed> Dave, I don't believe it's a vi error. /bin/vi doesn't exist,
Jed> therefore can't be run. So it would make sense that bash would
Jed> complain about not finding it. If it were a vi error, I'd expect
Jed> the message to look more like: "vi: unable to frobble the
Jed> mungler" or whatever.

Jed> $ ls /bin/vi ls: /bin/vi: No such file or directory

You are using bash? 

how about a 'hash -r' to reset the path hash table?

in some other shells (tcsh, zsh) it might be 'rehash') 

kevin
-- 
Kevin Fenzi
MTS, tummy.com, ltd.
http://www.tummy.com/  KRUD - Kevin's Red Hat Uber Distribution



More information about the LUG mailing list