1EVAL(P) POSIX Programmer's Manual EVAL(P)
2
3
4
6 eval - construct command by concatenating arguments
7
9 eval [argument ...]
10
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
17 None.
18
20 See the DESCRIPTION.
21
23 Not used.
24
26 None.
27
29 None.
30
32 Default.
33
35 Not used.
36
38 The standard error shall be used only for diagnostic messages.
39
41 None.
42
44 None.
45
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
53 Default.
54
55 The following sections are informative.
56
58 None.
59
61 foo=10 x=foo
62 y='$'$x
63 echo $y
64 $fooeval y='$'$x
65 echo $y
66 10
67
69 None.
70
72 None.
73
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)