odd bash wrapping due to ansi codes

Earnie Boyd earnie_boyd@yahoo.com
Mon Sep 18 05:40:00 GMT 2000


--- Chris Abbey <cabbey@bresnanlink.net> wrote:
> 
> I've set mine up as:
> 
> if [ "$TERM" == "cygwin" ]; then
> 	PS1='' #cygwin version with ansi codes
> else
> 	PS1='\w $'
> fi
> export PS1
> 
> and as long as I'm in that file, I just saw the other
> patch I put in my copy....
> 
> if [ "$SHELL" != "/bin/bash" ]; then
> 	test -f ./.profile && . ./.profile
> 	test -f ./.bashrc && . ./.bashrc
> fi
> 
> this has the advantage for those who run bash of not
> sourcing these files twice, as bash does so itself.
> 

No, it doesn't always.  If --login then ./.bashrc is not performed but
./.profile is, and without --login ./.bashrc is performed but not ./.profile. 
Also, without --login the /etc/profile isn't performed and shouldn't be a
concern.

Cheers,

=====
--- < http://earniesystems.safeshopper.com > ---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://gw32.freeyellow.com/ >
           __Minimalist GNU for Windows__
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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



More information about the Cygwin mailing list