false

NAME

false - return 1, unix semi-standard return code for "error = true"

DOC DATE

19990909

SYNOPSIS

false

DESCRIPTION

true and false are as simple as commands get. They just return 0 and 1 to thier caller, respectively. This return value is passed on the CPU subroutine return stack, and has no bearing on file IO.

unix true and false are in the opposite sense for normal Boolean logic, where 0 is usually considered to represent false. I personally consider the false command to return "error = true, thus success = false". I find it makes slightly more sense to think of it like that.

Most shells keep the return value of the last command in the ? variable. The sequence...

 
	false 
	echo $?  
	true 
	echo $?  

will illustrate stack return value passing.

cLIeNUX false is implemented in C, without libc. It is linked statically with the kernel exit call wrapper from cLIeNUX libsys.a. That's all it is, in fact. For some illustration of the implications of that, do

	time false
	wc /command/false
 
The sourcecode of false should be in /source somewhere as an example of libc-less C with libsys. false doesn't even use arc_env.o for argument processing, so with cLIeNUX false you will have to live without --help or --version or any other args.

RIGHTS

Copyright 1999 Richard Allen Hohensee
This seedoc is released for redistribution only as part of an intact entire cLIeNUX Core.