<div class="gmail_quote">On Sat, Mar 14, 2009 at 11:22 PM, Patrick Dupre <span dir="ltr"><<a href="mailto:pd520@york.ac.uk" target="_blank">pd520@york.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
When I run gnome-terminal, it does run .bash_profile, but it looks like<br>
that it should not.<br>
xtern and terminal have the right behavior.<br>
<br>
Am I correct ?<br>
<br>
How can avoid to run .bash_profile when I run gnome-terminal ?<br>
<br>
Thank<br>
<br>
-- <br>
---<br>
==========================================================================<br>
Patrick DUPRÉ | |<br>
Department of Chemistry | | Phone: (44)-(0)-1904-434384<br>
The University of York | | Fax: (44)-(0)-1904-432516<br>
Heslington | |<br>
York YO10 5DD United Kingdom | | email: <a href="mailto:pd520@york.ac.uk" target="_blank">pd520@york.ac.uk</a><br>
==========================================================================<br>_______________________________________________<br>
York mailing list<br>
<a href="mailto:York@lists.lug.org.uk" target="_blank">York@lists.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/york" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/york</a><br>
<br></blockquote></div><br>.bash_profile runs when a bash login shell is executed. .bashrc is run
for non-login bash shells. gnome-terminal should normally run .bashrc
as it isn't executing a login shell.
(<a href="http://joshstaiger.org/archives/2005/07/bash_profile_vs.html">http://joshstaiger.org/archives/2005/07/bash_profile_vs.html</a>). Check
the gnome-terminal preferences and look at the contents of .bashrc and
.bash_profile to ensure that one is not sourcing the other.<br clear="all"><br>-- <br>Regards,<br>Harry Mills<br>