How to change environment variables

The easiest way to change an environment variable is to add to it. For example, in a shell script, to add -D__MYDEBUG__ as an option to the compiler:

    setenv CompileOptions "-D__MYDEBUG__ ${CompileOptions}"
If you frequently add the same option, put the setting in a startup file.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker