True: true
Less than 1 minuteBuiltin CommandsDefined by POSIX
True: true
Returns a
truevalue
Description
Returns a true value.
Usage
true -> <stdout>
Examples
No flags
By default, true also outputs the term "true":
» true
true
Silent
You can suppress that with the silent flag:
» true -s
Flags
-ssilent - don't output the term "true"
See Also
- False:
false: Returns afalsevalue - If Conditional:
if: Conditional statement to execute different blocks of code depending on the result of the condition - Logic And Statements:
and: Returnstrueorfalsedepending on whether multiple conditions are met - Logic Or Statements:
or: Returnstrueorfalsedepending on whether one code-block out of multiple ones supplied is successful or unsuccessful. - Not:
!: Reads the stdin and exit number from previous process and not's it's condition
This document was generated from builtins/core/typemgmt/types_doc.yaml.