Why doesn't bash read my .bashrc file on startup?

Earnie Boyd earnie_boyd@yahoo.com
Thu Nov 16 11:19:00 GMT 2000


--- David Starks-Browning <starksb@ebi.ac.uk> wrote:
> This is an old FAQ entry:
> 
> Q. Why doesn't bash read my .bashrc file on startup?
> 
> A. Your .bashrc is read from your home directory specified by the HOME
>    environment variable. It uses /.bashrc if HOME is not set. So you
>    need to set HOME correctly, or move your .bashrc to the top of the
>    drive mounted as / in Cygwin.
> 
> Now that HOME is set in a default setup, this shouldn't come up,
> right?  At least not "frequently".
> 
> I think the FAQ is too big (and it will get even bigger soon), and I
> suspect it's difficult to find what you're looking for, so I'm
> inclined to prune it wherever possible.
> 
> Thanks for any advice/opinions on the matter.
> 

It's still possible to not have HOME set if someone issues the bash command
without going through cygwin.bat or modifying cygwin.bat so that --login isn't
issued with the command line.

Perhaps a current FAQ and a historical FAQ needs to be created.

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! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list