COLON(1P)
β¨ COLON(1P) β¨
okay bestie, gather round π this one is from the POSIX Programmer's Manual (yes, the whole thing is literally titled COLON(1P) and it's filed under section 1P), and we're about to make the most humble little utility in the whole shell feel like a main character. π
π«Ά PROLOG π«Ά
okay so before we even start β real talk. This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the deets on how Linux actually behaves, bestie), or honestly? The interface may not be implemented on Linux at all. π Not every POSIX cutie makes it to the Linux party.
π NAME π
colon β the null utility. she does nothing and she does it flawlessly. iconic behaviour honestly. β¨
πΈ SYNOPSIS πΈ
: [argument...]
π¦ DESCRIPTION π¦
This utility shall only expand command arguments. That's it. That's the whole job.
You use her when a command is needed β like, the slot demands something there β as in the then condition of an if command, but nothing is actually supposed to be done by the command. She's the "yeah sure I'll be there" of the shell world. π
β¨ OPTIONS β¨
None. zero. nada. she doesn't have flags, she doesn't need flags, she IS the flag. π
π OPERANDS π
See the DESCRIPTION. (Yeah, she's pointing you back upstairs, she's like that. π)
π STDIN π
Not used. she is not reading your messages, bestie. β
π§ INPUT FILES π§
None.
π ENVIRONMENT VARIABLES π
None.
π ASYNCHRONOUS EVENTS π
Default.
β STDOUT β
Not used.
π₯ STDERR π₯
The standard error shall be used only for diagnostic messages. so like, she's not gonna chat, but if something's wrong she WILL speak up. valid.
π OUTPUT FILES π
None.
πΈ EXTENDED DESCRIPTION πΈ
None.
π EXIT STATUS π
Zero. always zero. she leaves every room on a perfect note. π
π«Ά CONSEQUENCES OF ERRORS π«Ά
Default.
The following sections are informative. (translation: the real ones are done, here's the bonus content β¨)
π APPLICATION USAGE π
None.
π EXAMPLES π
okay bestie, here's the moment you've been waiting for. watch her WORK:
: ${X=abc}
if false
then :
else echo $X
fi
abc
see how she just... sat there? and the whole thing still worked? that's the power. π
And β as with any of the special built-ins β the null utility can also have variable assignments and redirections associated with her, like this:
x=y : > z
which sets variable x to the value y (so that it persists after the null utility completes β yes, she leaves gifts behind, we love a generous queen π) and creates or truncates file z. slay. β¨
π§ RATIONALE π§
None.
π¦ FUTURE DIRECTIONS π¦
None.
π SEE ALSO π
- Section 2.14, Special Built-In Utilities
π COPYRIGHT π
okay so this is the part where we give credit, and we do it properly because we're not rude. π«Ά
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page, bestie π courtesy of IEEE/The Open Group, dated 2017, filed under COLON(1P) β stay null, stay iconic, mwah πβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms