Setting options for a shell session
The set command lets you set options, or flags, for your shell session. These flags control the way the shell handles certain situations.
- To display the shell flags that are currently set, enter:
set –o
- To turn on an option, enter:
where name is the name of the option you want to turn on. If you want an option turned on for every shell session, put the set command in your login script (the script specified on the ENV variable).set –o name
- To turn off an option, enter:
set +o name
Contrary to what you might expect, - means on, and + means off.
The following discussion highlights some of the options you may find useful. For all the options, see the set command description in z/OS UNIX System Services Command Reference.