From: <mic...@ea...> - 2004-05-21 19:55:59
|
Le 21 mai 2004, =E0 21:23, Roland Kuhn a =E9crit : >> Second, DISPLAY should be set in order to be able to launch X11=20 >> applications. Bash does not read the same file depending on the way=20= >> the shell is launched (interactive or not, login or not), putting the=20= >> DISPLAY setting in .bashrc ensures that it is set in all shells. See=20= >> bash man page, section INVOCATION. >> > That's not true: .bashrc is _only_ read by non-login shells. bash=20 > reads either .bash_profile/.bash_login/.profile or .bashrc. That has=20= > led to great confusion amongst some users, but it allows to keep=20 > settings for login shells and subshells strictly separate. Note that=20= > this applies only to interactive shells (which means every shell which=20= > displays a prompt). So, I rephrase, if you put it in .bashrc and then source .bashrc in=20 .profile, it is set in all shells. As the user was said to put it in=20 .profile, adding it in .bashrc, makes the same thing. Mich=E8le <http://micmacfr.homeunix.org> |