true

do nothing, successfully 

Command, KornShell Built-in


SYNOPSIS

true [argument...]


DESCRIPTION

The true command simply yields an exit status of zero (success). It ignores any arguments given on the command line. This can be surprisingly useful, for example, when you are evaluating shell expressions for their side effects.


DIAGNOSTICS

Since this command always succeeds, the only possible exit status is:

0 

Successful completion.


PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


NOTE

This command is provided as both an external utility and as a MKS KornShell built-in.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
false, sh


PTC MKS Toolkit 10.4 Documentation Build 39.