HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
v
vc(1) vc(1)
The syntax of a condition may include the following:
<cond> ::= [ "not" ] <or>
<or> ::= <and> | <and> "|" <or>
<and> ::= <exp> | <exp> "&" <and>
<exp> ::= "(" <or> ")" | <value> <op> <value>
<op> ::= "=" | "!=" | "<" | ">"
<value> ::= <arbitrary ASCII string> | <numeric string>
The following are available operators and their meanings:
= equal
!= not equal
& and
| or
> greater than
< less than
() used for logical groupings
not allowed only immediately after the if, and when present, inverts
the value of the entire condition
The
> and < operate only on unsigned integer values (such as : 012 > 12 is
false). All other operators take strings as arguments (for example,
: 012 !=
12
is true). The precedence of the operators (from highest to lowest) is as follows:
=!=>< all of equal precedence
&
|
Parentheses can be used to alter the order of precedence. Values must be
separated from operators or parentheses by at least one space or tab.
::text Used for keyword replacement on lines that are copied to the standard output.
The two leading control characters are removed, and keywords surrounded by con-
trol characters in text are replaced by their value before the line is copied to the
output file. This action is independent of the -a option.
:on
:off Turn on or off keyword replacement on all lines.
:ctlchar Change the control character to char.
:msgmessage Prints the given message on the diagnostic output.
:errmessage Prints the given message followed by:
ERROR: err statement on line ... (915)
on the diagnostic output. vc halts execution and returns an exit code of 1.
EXTERNAL INFLUENCES
Environment Variables
LC_CTYPE determines the interpretation of keywords, values, the control character assigned through
ctl and within text as single- and/or multi-byte characters.
LANG determines the language in which messages are displayed.
If LC_CTYPE is not specified in the environment or is set to the empty string, the value of LANG is used
as a default for each unspecified or empty variable. If LANG is not specified or is set to the empty string, a
default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid
setting, vc behaves as if all internationalization variables are set to "C". See environ(5).
RETURN VALUE
vc returns 0 on normal completion; 1 if an error occurs.
DIAGNOSTICS
Use sccshelp(1) for explanations.
Section 1−−1036 Hewlett-Packard Company − 2 − HP-UX 11i Version 1: September 2005