1COLON(1P)                  POSIX Programmer's Manual                 COLON(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       colon - null utility
13

SYNOPSIS

15       : [argument ...]
16

DESCRIPTION

18       This utility shall only expand command arguments. It  is  used  when  a
19       command is needed, as in the then condition of an if command, but noth‐
20       ing is to be done by the command.
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       Zero.
54

CONSEQUENCES OF ERRORS

56       Default.
57
58       The following sections are informative.
59

APPLICATION USAGE

61       None.
62

EXAMPLES

64              : ${X=abc}
65              if     false
66              then   :
67              else   echo $X
68              fi
69              abc
70
71       As with any of the special built-ins, the null utility  can  also  have
72       variable assignments and redirections associated with it, such as:
73
74
75              x=y : > z
76
77       which  sets  variable  x  to the value y (so that it persists after the
78       null utility completes) and creates or truncates file z.
79

RATIONALE

81       None.
82

FUTURE DIRECTIONS

84       None.
85

SEE ALSO

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