bug-bash
[Top][All Lists]
Advanced

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

Re: Install Bashdb and Bash not as root


From: Bob Proulx
Subject: Re: Install Bashdb and Bash not as root
Date: Wed, 4 Mar 2009 14:36:03 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

lehe wrote:
> Since the old shell is the login shell reading ./bash_profile and the new
> one isn't but reading ./bashrc,  how could there possibly be infinite loop
> at login-in?

There shouldn't be, so you should be okay there.  But people rarely
leave things alone.  If you mutated that into a few close variations
you could end up a problem.  So I was warning about it as a
precaution.  For example if you added the -l option to exec.  Or other
things.

> You mean, new shell keeps calling itself by reading
> ./bash_profile? If the infinite loop happens, what would you do in those
> spare terminals? 

In the spare terminal I would move the .bash_profile and/or .bashrc
out of the way.  Rename them to different names.  That would stop any
of the problems I cautioned about.  Then you could debug what was
wrong and make another attempt.

> I tried add PATH=mypath_for_bashdb:${PATH} to both ./bash_profile and
> ./bashrc.

I don't think PATH should be modified in the .bashrc.  It is read by
every shell.  Every time you would be adding to PATH.  Better to do it
once only in the .bash_profile only.

> However emacs still saying no match to "M-x bashdb". Any help is
> appreciated!

Sorry but I don't know anything about bashdb in Emacs.  But you
probably need to load the bashdb.el file first.  Probably something
like this in your .emacs file.

  (autoload 'bashdb "bashdb" "Run bashdb" t nil)

Find the bashdb.el file and read it.  There should be comments at the
top that inform how to use it.

Bob




reply via email to

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