Hi,
From the doc:
"Set environment variables on the end user’s system. Compatible with Windows and Unix only. Unix Bash, sh, ksh, zsh, csh, and tcsh shells are supported."
Under Ubuntu and RedHat with Bash, the task defines my environment variable into ~/.profile.
From the bash documentation http://mywiki.wooledge.org/DotFiles :
"Now, since bash is being invoked as a login shell (with name "-bash", a special ancient hack), it reads /etc/profile first. Then it looks in your home directory for .bash_profile, and if it finds it, it reads that. If it doesn't find .bash_profile, it looks for .bash_login, and if it doesn't find that, it looks for .profile (the standard Bourne/Korn shell configuration file)"
I DO have a ~/.bash_profile, which is quite common actually. So ~/.profile never gets read and I don't have my environment variables defined when using a login shell.
Am I missing something?
Shouldn't it be at least defined in the ~/.<user_shell>rc file?
Thanks


Reply With Quote
