HP-UX Reference (11i v2 07/12) - 1 User Commands A-M (vol 1)

e
ex(1) ex(1)
HOME shall be interpreted as a pathname of a directory that shall be searched for an editor startup file
name .exrc.
LC_COLLATE determines the collating sequence used in evaluating regular expressions and in processing
the tags file. If it is not specified or is null, it defaults to the value of
LANG.
LC_CTYPE determines the interpretation of text as single and/or multibyte characters, the classification of
characters as uppercase or lowercase letters, the shifting of the case of letters, and the characters matched
by character class expressions in regular expressions. If it is not specified or is null, it defaults to the value
of LANG.
LANG determines the language in which messages are displayed. If it is not specified or is null, it defaults
to "C" (see lang(5)).
LC_ALL determines the locale to be used to override any values for locale categories specified by the set-
ting of LANG or any environment variable (beginning with
LC_ ).
LC_MESSAGES determines the processing of affirmative responses and the language in which messages
should be written.
If any internationalization variable contains an invalid setting, all internationalization variables default to
"C" (see environ(5)).
When set, the TMPDIR environment variable specifies a directory to be used for temporary files, overriding
the default directory /var/tmp.
International Code Set Support
Single- and multibyte character code sets are supported.
ASYNCHRONOUS EVENTS (XPG4 Only)
The following actions shall be taken upon receipt of signals:
SIGINT
When an interrupt occurs, ex shall alert the terminal and write a message. The current editor com-
mand shall be aborted, and ex shall return to the command level and prompt for another command.
If the standard input is not a terminal device, ex shall exit at the interrupt and return a nonzero exit
status.
SIGCONT
The screen shall be refreshed.
SHIGHUP
If the current buffer has changed since the last e or w command, ex
shall attempt to save the
current file in a state such that it can be recovered later by an
ex -r
command.
The action taken for all other signals is unspecified.
EXTENDED DESCRIPTION (XPG4 Only)
The pathname of the file being edited by
ex is referred to as the current
file. The text of the file shall
be read into a working version of the le (called
buffer in this clause), and all editing changes shall be
performed on that version; the changes shall have no effect on the original file until an
ex command
causes the file to be written out. Lines in the buffer may be limited to 4096 characters including 2-3 bytes
for overhead. Thus a line length up to 4092 characters should cause no problem. An error message may be
written if the limit is exceeded during editing.
The
alternate pathname is the name of the last file mentioned in an editor command, or the previous
current pathname if the last file mentioned became the current file. When the % appears in a pathname
entered as part of a command argument, it shall be replaced by the altername pathname. Any character,
including % and # shall retain its literal value when preceded by a backslash.
When an error occurs, ex shall alert ther terminal and write a message.
If the system crashes, ex shall attempt to preserve the buffer if any unwritten changes were made. The
command-line option -r can be used to retrieve the saved changes.
During initialization (before the first file is read or any user commands from the terminal are processed), if
the environment variable EXINIT is set, the editor shall execute ex commands contained in that vari-
able. If the variable is not set, ex shall attempt to read commands from the $HOME/.exrc . If and only
if EXINIT or $HOME/.exrc sets the editor option exrc, ex finally shall attempt to read commands from
afile .exrc in the current directory. In the event that EXINIT is not set and the current directory is
HP-UX 11i Version 2: December 2007 Update 17 Hewlett-Packard Company 329