1EVAL(P)                    POSIX Programmer's Manual                   EVAL(P)
2
3
4

NAME

6       eval - construct command by concatenating arguments
7

SYNOPSIS

9       eval [argument ...]
10

DESCRIPTION

12       The  eval  utility shall construct a command by concatenating arguments
13       together, separating each with a <space>. The constructed command shall
14       be read and executed by the shell.
15

OPTIONS

17       None.
18

OPERANDS

20       See the DESCRIPTION.
21

STDIN

23       Not used.
24

INPUT FILES

26       None.
27

ENVIRONMENT VARIABLES

29       None.
30

ASYNCHRONOUS EVENTS

32       Default.
33

STDOUT

35       Not used.
36

STDERR

38       The standard error shall be used only for diagnostic messages.
39

OUTPUT FILES

41       None.
42

EXTENDED DESCRIPTION

44       None.
45

EXIT STATUS

47       If  there are no arguments, or only null arguments, eval shall return a
48       zero exit status; otherwise, it shall return the  exit  status  of  the
49       command  defined  by  the string of concatenated arguments separated by
50       <space>s.
51

CONSEQUENCES OF ERRORS

53       Default.
54
55       The following sections are informative.
56

APPLICATION USAGE

58       None.
59

EXAMPLES

61              foo=10 x=foo
62              y='$'$x
63              echo $y
64              $fooeval y='$'$x
65              echo $y
66              10
67

RATIONALE

69       None.
70

FUTURE DIRECTIONS

72       None.
73

SEE ALSO

75       Special Built-In Utilities
76
78       Portions of this text are reprinted and reproduced in  electronic  form
79       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
80       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
81       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
82       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
83       event of any discrepancy between this version and the original IEEE and
84       The Open Group Standard, the original IEEE and The Open Group  Standard
85       is  the  referee document. The original Standard can be obtained online
86       at http://www.opengroup.org/unix/online.html .
87
88
89
90IEEE/The Open Group                  2003                              EVAL(P)
Impressum