TRUE(1x) 1x TRUE(1x)

This manual page is part of Cross-Unix Documentation which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems. To be used as an addition to the POSIX standard.

trueshould always returns true

true [ignored arguments]

true [--help] [--version]

IEEE Std 1003.1-2008 (“POSIX.1”) defines true as a command that does not uses standard outputs or input, yet the GNU coreutils implementation of true doesn't ignore --help and --version which could lead to bugs or unexpected behaviour. Such as:

$ /bin/true --help > /dev/full
/bin/true: write error: No space left on device
$ echo $?
1

GNU coreutils 8.30

Haelwenn (lanodan) Monnier <contact+c-u-d@hacktivis.me>

2019-03-05 Linux 6.12.21-gentoo-x86_64