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

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       eval - construct command by concatenating arguments
13

SYNOPSIS

15       eval [argument ...]
16

DESCRIPTION

18       The eval utility shall construct a command by  concatenating  arguments
19       together, separating each with a <space>. The constructed command shall
20       be read and executed by the shell.
21

OPTIONS

23       None.
24

OPERANDS

26       See the DESCRIPTION.
27

STDIN

29       Not used.
30

INPUT FILES

32       None.
33

ENVIRONMENT VARIABLES

35       None.
36

ASYNCHRONOUS EVENTS

38       Default.
39

STDOUT

41       Not used.
42

STDERR

44       The standard error shall be used only for diagnostic messages.
45

OUTPUT FILES

47       None.
48

EXTENDED DESCRIPTION

50       None.
51

EXIT STATUS

53       If there are no arguments, or only null arguments, eval shall return  a
54       zero  exit  status;  otherwise,  it shall return the exit status of the
55       command defined by the string of concatenated  arguments  separated  by
56       <space>s.
57

CONSEQUENCES OF ERRORS

59       Default.
60
61       The following sections are informative.
62

APPLICATION USAGE

64       None.
65

EXAMPLES

67              foo=10 x=foo
68              y='$'$x
69              echo $y
70              $foo
71              eval y='$'$x
72              echo $y
73              10
74

RATIONALE

76       None.
77

FUTURE DIRECTIONS

79       None.
80

SEE ALSO

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