MPE/iX Shell and Utilities Reference Manual, Vol 1

eval(1) MPE/iX Shell and Utilities eval(1)
NAME
eval — evaluate arguments in shell
SYNOPSIS
eval [argument ...]
DESCRIPTION
The shell evaluates each argument as it would for any command. eval then concatenates the
resulting strings, separated by spaces, and evaluates and executes this string in the current
shell environment.
EXAMPLE
The command:
forain123
do
eval x$a=fred
done
sets variables x1, x2 and x3 to fred. Once this has been done,
echo $x1 $x2 $x3
produces:
fred fred fred
DIAGNOSTICS
Possible exit status values are:
0 You specified no arguments or the specified arguments were empty strings.
Otherwise, the exit status of eval is the exit status of the command that eval executes.
Messages
Because this utility is built into the
MPE/iX Shell, see the sh(1) man page for a complete list of
error messages that you may receive when using it.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems.
NOTE
This is a special built-in command of the shell.
Commands and Utilities 1-209