view toys/false.c @ 401:bc435ea49b2c

Don't make toysh default to y until it does something useful.
author Rob Landley <rob@landley.net>
date Wed, 28 Dec 2011 16:50:16 -0600
parents 163498bf547b
children
line wrap: on
line source

/* vi: set sw=4 ts=4:
 *
 * false.c - Return nonzero.
 *
 * Copyright 2007 Rob Landley <rob@landley.net>
 *
 * See http://www.opengroup.org/onlinepubs/009695399/utilities/false.html

USE_FALSE(NEWTOY(false, NULL, TOYFLAG_BIN))

config FALSE
	bool "false"
	default y
	help
	  Return nonzero.
*/

#include "toys.h"

void false_main(void)
{
	toys.exitval = 1;
}