This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: .bashrc in Cygwin-Xfree


--- Bernard Revet <bmrevet@igr.fr> wrote:
> Dear Earnie
> 
> Looking back to the FAQs of Cygwin-Xfree I found out that you answered
> to David Starks-Browning about the fact that bash did not read his
> .bashrc file.
> I already mentioned this point to the list and I did not get any answer
> .
> You can put your .bashrc file at any starting directory /  /bin or
> /usr/X11R6/bin or ~
> directory it is not read except if you have a better way to have it done
> 
> for instance
> with cygwin.bat
> such as
> 
> @echo off
> set COURBURE=/Courbure
> D:
> chdir \cygwin\bin
> 
> bash --login -i
> 
> Then if you
> echo $COURBURE will give /Courbure
> 
> Putting
> set COURBURE=/Courbure
> export COURBURE
> 
> in a   .bashrc file will not set COURBURE
> wherever you put your .bashrc file
> 
> Same story with startxwin.bat
> In that case you even have to SET HOME=/home/administrateur  for
> instance in you startxwin.bat file
> 
> If you have some hint to solve this problem I will deeply appreciate
> 
> Yours
> Sincerely
> Bernard
> 
> 
> 

.bashrc belongs in your $HOME directory.  It is not "automatically" read when
bash is in login mode (i.e. --login).  The Cygwin setup process creates a
/etc/profile file that looks for ~/.bashrc and executes it if it exists.  I
hope this helps.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]