Name

true — return success status

Synopsis

true [args...]

Note

Most shells have a built-in true command. See the manual for each individual shell for its built-in command. This command is more commonly used with exec(1) and nosh(1).

Description

true is a utility that simply exits with a zero exit status in normal use. It ignores [args...] but supports the standard --help and --usage options.

true will exit with a non-zero exit status if an error occurs during argument parsing.

Security

Some other external implementations of true are shell scripts that wrap a shell's built-in true command. This is a security problem, as significant care must be taken to ensure that the shell correctly deals with people who symbolically link the script to other names (such as -i), who supply extra script arguments, and who set environment variables such as IFS.

This true is not a shell script.

Author

Jonathan de Boyne Pollard