Re: is something wrong in it?



On Thu, 12 Jan 2006 15:11:12 +0100, Rita <ritu_minda@xxxxxxxxxxx> wrote:


But a closer inspection shows that the error more likely has the space like
this:

   export PATH= "$MFOLD/bin:$PATH"      ###  NO, NO, NO!

But I am puzzled about this one:

   bash: .bashrc: command not found

indicates he must be running some other script too, that tries to source .bashrc,
but fails. It should of course be ~/.bashrc .  He may have set his terminal
window to run bash as a login shell, and he may have a ~/.bash_login file (or
~/.bash_profile or ~/.profile) containing ". .bashrc".

I can give answer of this question bcoz I create the problam . in .bashrc file at first line somehow I delete the # by mistake,so this message is coming . but i fix it now. Thanks


I just discovered an error in what I wrote a couple of messages ago in this thread:


 export MFOLD=/home/rita/downloads/mfold-3.2-RedHat-binaries
 case $PATH in

The following line

$MFOLD)

should have been

     *$MFOLD/bin*)

     true;;
   *)
     export PATH="$MFOLD/bin:$PATH";;
 esac

The purpose of the convolution, was to avoid adding $MFOLD/bin to the path multiple times if you, e.g. source .bashrc again. As I first wrote it it would not avoid that, but otherwise it would do no harm.

-Enrique
.



Relevant Pages

  • Re: function in .bashrc problem
    ... either shove it in the .bashrc file (if ... And I get the same error in both centos and opensuse. ...
    (comp.os.linux.misc)
  • Re: is something wrong in it?
    ... > But a closer inspection shows that the error more likely has the space like ... > bash: .bashrc: command not found ... > indicates he must be running some other script too, that tries to source .bashrc, ... in .bashrc file at first line somehow I delete the # by mistake,so this ...
    (comp.os.linux.misc)
  • Re: personal .bashrc
    ... Now I created a brand new user, but the .bashrc file I inserted in his home is never read upon login... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • .bashrc anyone?
    ... Just reinstalled my Ubuntu and, ... not a very inspired decision) ... ... I am looking for a default/example .bashrc file which enables ...
    (Ubuntu)
  • Re: personal .bashrc
    ... Now I created a brand new user, but the .bashrc file I inserted in his home is never read upon login... ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)