Environment variables

When running on Unix and Windows NT/2000/XP, the system shell lets you access and change operating system-specific environment variables. On other systems, you can define and use variables, but they are console-specific.

To accommodate both Windows and Unix users, three forms of variable syntax are supported by the system shell:

The following variables are defined under all circumstances, independent of operating system-specific environment variables being available or not:

The following system shell built-ins deal with environment variables:

To insert a "$" or "%" literally in the command string, you can write "$$" and "%%".