1TRUE(P) POSIX Programmer's Manual TRUE(P)
2
3
4
6 true - return true value
7
9 true
10
12 The true utility shall return with exit code zero.
13
15 None.
16
18 None.
19
21 Not used.
22
24 None.
25
27 None.
28
30 Default.
31
33 Not used.
34
36 Not used.
37
39 None.
40
42 None.
43
45 Zero.
46
48 None.
49
50 The following sections are informative.
51
53 This utility is typically used in shell scripts, as shown in the EXAM‐
54 PLES section. The special built-in utility : is sometimes more effi‐
55 cient than true.
56
58 This command is executed forever:
59
60
61 while true
62 do
63 command
64 done
65
67 The true utility has been retained in this volume of
68 IEEE Std 1003.1-2001, even though the shell special built-in : provides
69 similar functionality, because true is widely used in historical
70 scripts and is less cryptic to novice script readers.
71
73 None.
74
76 false , Shell Commands
77
79 Portions of this text are reprinted and reproduced in electronic form
80 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
81 -- Portable Operating System Interface (POSIX), The Open Group Base
82 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
83 Electrical and Electronics Engineers, Inc and The Open Group. In the
84 event of any discrepancy between this version and the original IEEE and
85 The Open Group Standard, the original IEEE and The Open Group Standard
86 is the referee document. The original Standard can be obtained online
87 at http://www.opengroup.org/unix/online.html .
88
89
90
91IEEE/The Open Group 2003 TRUE(P)