Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

ex(1) OSS Shell and Utilities Reference Manual
se[t][option[=[value]] ... [nooption ...] [option? ...] [all]
When no arguments are specied, writes those options whose values have been changed
from the default settings; when the argument all is specied, writes all of the option
values.
Specifying an option name followed by the ? character causes the current value of that
option to be written. The ? can be separated from the option name by zero or more
spaces. The ? is necessary only for Boolean valued options. Boolean options can be
given values by the form se option to turn them on or se nooption to turn them off; string
and numeric options can be assigned by the form se option=value. Spaces in strings can
be included as they are by preceding each such character with a \ (backslash). More
than one option can be set or listed by a single set subcommand by specifying multiple
arguments, each separated from the next by one or more spaces.
sh[ell] Invokes the program named in the SHELL environment variable with the argument -i
(interactive mode). You can resume editing when the program exits.
so[urce] file
Reads and executes subcommands from the le specied by the mandatory le argu-
ment. Such source subcommands can be nested.
[range] s[ubstitute][/pattern/repl/[options][count][flags]
Replaces the rst instance of pattern by the string repl on each specied line. If the
/pattern/repl/ argument is not present, the /pattern/repl/ from the previous substitute
subcommand is used.
If options includes the letter g (global), all nonoverlapping instances of the pattern in the
line are substituted. If the option letter c (conrm) is included, then before each substi-
tution the line is written with ˆ characters written on the following line, adjacent to and
identifying the pattern to be replaced; an afrmative response causes the substitution to
be done, while any other input causes it to abort. An afrmative response consists of a
line with the afrmative response (as dened by the current locale) at the beginning of
the line. Such a line is subject to editing in the same way as the command line (the / or :
line at the bottom of the screen).
The current line is the last line substituted. When the c option is used, typing the Inter-
rupt character or receiving the SIGINT signal stops the substitute operation, and ex
returns to command mode. All substitutions completed before the interrupt occurred are
retained and none are made after that point. The current line is the last line substituted.
This subcommand is affected by the LC_MESSAGES environment variable and the
wrapscan option.
su[spend][!]
st[op][!] Allows control to return to the invoking process; ex suspends itself as if it had received
the SIGTSTP signal. The suspension occurs only if job control is enabled in the invok-
ing shell.
Following either suspend or stop with the character ! affects the operation of the
autowrite editor option for this subcommand only.
The current suspend character (see stty) also causes the suspension.
ta[g][!] tagstring
Searches for the tag string, which can be in a different le. If the tag is in a different le,
the new le is opened for editing. If the current buffer has been modied since the last
write, the subcommand writes a warning and terminates. You can override the action by
appending the ! character to the subcommand name. The current line is reset to the line
3112 Hewlett-Packard Company 527188-007