Monday, 10 January 2011

Setting Up Solaris Environment Variables

In Solaris, to setup an environment variable you need to both declare it and then export it:

    MYNAME=fred
    export MYNAME

The best place to add these is to the .profile file.

You can’t put dots in an environment variable descriptor:

    MY.NAME=fred # This won’t work.