MPE/iX Shell and Utilities Reference Manual, Vol 2
set(1) MPE/iX Shell and Utilities set(1)
NAME
set — set shell flags and positional parameters
SYNOPSIS
set [±abCefhiKkmnpstuvx–][±Aname][±o[ flag]] [parameter ...]
DESCRIPTION
Note: The
MPE/iX implementation of this utility does not function exactly as this man page
describes. For details, see the MPE/iX NOTES section at the end of this man page.
Calling set without arguments displays the names and values of all environment variables,
sorted by name, in the following format:
Variable="value"
The quoting allows the output to be re-input to the shell using the built-in command eval.
Options
Arguments of the form –option set each shell flag specified as an option. Similarly, arguments
of the form +option turn off each of the shell flags specified as an option.
Note: All of the set options except ±A, –s, –, and –– are shell flags. Shell flags can also be
set on the sh command line at invocation.
set accepts the following options:
+A name
assigns the parameter list to the elements of name, starting at name[0].
–A name
unsets name, then assigns the parameter list to the elements of name starting at
name[0].
–a sets all subsequently defined variables for export.
–b notifies you when background jobs finish running.
–C prevents the output redirection operator > from overwriting an existing file. Use the
alternate operator >| to force an overwrite.
–e tells a non-interactive shell to execute the ERR trap and then exit, whenever a simple
command returns a non-zero exit. This flag is disabled when reading profiles.
–f disables file name generation.
Commands and Utilities 1-515