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: lehe
Subject: Re: Install Bashdb and Bash not as root
Date: Thu, 5 Mar 2009 08:37:42 -0800 (PST)

Thanks Bob!
I get my bashdb in my emacs work already.

As to changing to new bash from the beginning, I added into .bash_profile:
"SHELL='/cis/home/tingli/bin/bash-3.2.48/bin/bin/bash'                          
                                                                             
exec $SHELL "
It works quite well. The new bash starts automatically if I ssh to the
server from my laptop.

However, if I login using my office computer, which loads my HOME on server
directly as its hard disk, 
I will get such error:
"Your session only lasted less than 10 seconds. If you have not logged out
yourself, this could mean that there is some installation problem or that
you may be out of disk space. Try logging in with one of the failsafe
sessions to see if you can fix this problem."
If I comment the lines added to .bash_profile, I would be able to login
successfully.

Looks like I can get only one work, either my office computer or my laptop. 



Bob Proulx wrote:
> 
> 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
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Install-Bashdb-and-Bash-not-as-root-tp22316418p22355326.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.





reply via email to

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