MPE/iX Shell and Utilities Reference Manual, Vol 2
test(1) MPE/iX Shell and Utilities test(1)
Message
Message: bad number "string"
Cause: Invalid string given where a number was expected. (
MAILCHECK
,
TMOUT
,
OPTIND
,
HISTSIZE
, and
COLUMNS
(DOS only) environment variables, or ar-
ray subscript.)
Action: Specify a decimal number (containing only the digits ’0’ through ’9’) to the ap-
propriate environment variables or subscripts.
Message: expression syntax error
Cause: You specified an expression that did not have a valid syntax.
Action: Check the DESCRIPTION section for the valid syntax for expressions.
Message: getgroups failed
Cause: See syserror(3).
Action: See syserror(3).
Message: Insufficient memory
Cause: There were not enough free system resources to perform the specified operation.
Action: Free up more resources.
Message: missing closing )
Cause: You specified a ( as part of the test expression but did not provide the closing ).
Action: Provide the missing ).
Message: unbalanced []
Cause: You specified a [ without providing the matching ].
Action: Provide the missing ].
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX
systems.
The –k, –L, –nt, –ot, –ef, –a, and –o operators, plus the use of parentheses to group oper-
ators together, are all extensions to the POSIX standard.
NOTE
test is built into the shell and is also implemented as a separate utility.
Failure to quote variable expansions is a common mistake. For example,
test $NULL != string
If NULL is undefined or empty, this results in
test != string
which is not a valid test expression. This problem can be fixed by enclosing $NULL in quotes.
Commands and Utilities 1-601