False (Unix)

From DssWiki

Jump to: navigation, search

{{DISPLAYTITLE:{{#if:|:|}}false (Unix)}}

In Unix-like operating systems, false is the command that always returns the value 1, which is regarded by the shell as the logical value false.

This program takes no parameters.

It can be used to make a sequence of otherwise useful commands to fail, as in the example:

make … && false

false is considered to be more portable than true due to the fact that even if it is absent in the system, the call to it will fail, thus returning the correct value false.

[edit] See also


<noinclude>
Personal tools
efta 468 03-27-08 JOIN OUR TEAM!!