Your statement wouldn't be equivalent to what I have although I admit that that would not matter here.
Anyway, apparently the relevant bit of my .bash_profile is newer than the relevant bit of my .profile...
My config files are a mess which I am some day going to have to untangle... (I can't remember when I last used tcsh as an actual shell - as opposed to a script which still uses it - but my sh, bash and tcsh environments are still being automatically synced. This is from when Apple switched the default shell in OS X to bash.)
EDIT: actually .profile must just be older than .bash_profile as it is all written like this.
]]> [[ -f /etc/profile ]] && . /etc/profile
instead of the if/then statement. It will work either way, but I use the one liner because it makes my .xinitrc look a little cleaner.
]]>For example, I use
if [ -f "/etc/profile" ]
then
[ -r /etc/profile ] && . /etc/profile
fi
in ~/.profile and
[[ -f ~/.profile ]] && . ~/.profile
[[ -f ~/.bashrc ]] && . ~/.bashrc
in ~/.bash_profile.
Obviously you may prefer a different set up.
]]>I installed oracle jre from AUR. It installs the file /etc/profile.d/jre.sh which exports jre path, but in konsole I am not able to run java or javac. However if I login in a tty the file is sourced correctly (I have jre binaries in PATH).
In konsole I'm using zsh, but the same occurs with bash.
Anyone experienced this?
]]>