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

NAME

6       true - return true value
7

SYNOPSIS

9       true
10

DESCRIPTION

12       The true utility shall return with exit code zero.
13

OPTIONS

15       None.
16

OPERANDS

18       None.
19

STDIN

21       Not used.
22

INPUT FILES

24       None.
25

ENVIRONMENT VARIABLES

27       None.
28

ASYNCHRONOUS EVENTS

30       Default.
31

STDOUT

33       Not used.
34

STDERR

36       Not used.
37

OUTPUT FILES

39       None.
40

EXTENDED DESCRIPTION

42       None.
43

EXIT STATUS

45       Zero.
46

CONSEQUENCES OF ERRORS

48       None.
49
50       The following sections are informative.
51

APPLICATION USAGE

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

EXAMPLES

58       This command is executed forever:
59
60
61              while true
62              do
63                  command
64              done
65

RATIONALE

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

FUTURE DIRECTIONS

73       None.
74

SEE ALSO

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)
Impressum