Joined: 20 Jul 2012
Location: Bath, UK
|Posted: Sat Jan 19, 2013 12:41 pm Post subject: Global env vars not loaded
|Hey. I have a $SBCL_HOME set in /etc/env.d/50sbcl
My issue is that it doesn't get set at all when I start a new shell (zsh). echo $SBCL_HOME produces no output (empty line); trying the same in bash produces the same result. The variable DOES get set when I run `. /etc/profile' though.
What am I doing wrong with my set-up? Here are the commands I tried to see what's going on
|✓ ShanaX61s shana % echo $SBCL_HOME % [P ~ ] [J 0 ] [L 1 ]
✓ ShanaX61s shana % bash % [P ~ ] [J 0 ] [L 2 ]
shana@ShanaX61s ~ $ echo $SBCL_HOME
shana@ShanaX61s ~ $ exit
✓ ShanaX61s shana % . /etc/profile % [P ~ ] [J 0 ] [L 3 ]
shana@ShanaX61s $ echo $SBCL_HOME % [P ~ ] [J 0 ] [L 4 ]
shana@ShanaX61s $ zsh % [P ~ ] [J 0 ] [L 5 ]
✓ ShanaX61s shana % echo $SBCL_HOME % [P ~ ] [J 0 ] [L 1 ]
✓ ShanaX61s shana %
Is there something in particular that I need to put in my .zshrc? I can't find any information on this issue on the web. As far as I know, it should Just Work(TM) and that's what pretty much all of the sites I had a look on seem to imply.