EVAL(1CSH) COMMAND REFERENCE EVAL(1CSH)
NAME
eval - evaluate and execute arguments (csh built-in)
SYNOPSIS
eval [ arg... ]
DESCRIPTION
The eval command causes the arguments to be read by the
shell as input. This is usually used to execute text
generated by other commands or stored in variables.
EXAMPLES
The following example shows a standard use of the utility
tset(1), which gets the terminal type and can generate
environment variable assignments.
set noglob; eval `tset -s`; unset noglob
In this use, the tset command might generate output like:
set noglob ;
setenv TERM aaa ;
setenv TERMCAP <termcap string> ;
unset noglob
The eval command causes these commands to be run in the
current shell, thus setting the TERM and TERMCAP variables.
It should be noted that the extra ``set noglob'' in the
example is required in order to prevent filename
substitution in the tset output, and that the extra ``unset
noglob'' in the example is recommended in case the tset
command is aborted.
RETURN VALUE
The value returned by eval is that of the commands executed.
CAVEATS
A backquoted command that generates more than one word can
not be executed by csh unless the eval command is used.
This is used to inhibit usages like `*`, which generates an
ambiguous command line.
SEE ALSO
@(1csh), alias(1csh), bg(1csh), break(1csh), cd(1csh),
chdir(1csh), continue(1csh), csh(1csh), dirs(1csh),
echo(1csh), eval(1sh), exec(1csh), exit(1csh), fg(1csh),
glob(1csh), goto(1csh), hashstat(1csh), history(1csh),
jobs(1csh), kill(1csh), limit(1csh), logout(1csh),
nice(1csh), nohup(1csh), notify(1csh), onintr(1csh),
popd(1csh), pushd(1csh), rehash(1csh), repeat(1csh),
set(1csh), setenv(1csh), sh(1sh), shift(1csh), source(1csh),
stop(1csh), suspend(1csh), time(1csh), umask(1csh),
Printed 4/6/89 1
EVAL(1CSH) COMMAND REFERENCE EVAL(1CSH)
unhash(1csh), unalias(1csh), unlimit(1csh), unset(1csh),
unsetenv(1csh), wait(1csh), and which(1csh).
Printed 4/6/89 2
%%index%%
na:312,134;
sy:446,157;
de:603,340;
ex:943,1050;
rv:1993,230;
ca:2223,368;
se:2591,1279;4254,302;
%%index%%000000000131