Mercurial > hg > toybox
view toys/posix/true.c @ 1616:7d60ceb548d7 draft
More sed bugs.
1) Newline in -e after s/// was eaten as "whitespace before flags"
2) \\ needs to be passed through to regex to avoid "trailing \" error and
"\\n" is not a newline.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 19 Dec 2014 21:17:49 -0600 |
parents | e2b84f715e93 |
children | 5fac2769a159 |
line wrap: on
line source
/* true.c - Return zero. * * Copyright 2007 Rob Landley <rob@landley.net> * * See http://opengroup.org/onlinepubs/9699919799/utilities/true.html USE_TRUE(NEWTOY(true, NULL, TOYFLAG_BIN)) USE_TRUE(OLDTOY(:, true, 0, TOYFLAG_NOFORK)) config TRUE bool "true" default y help Return zero. */ #include "toys.h" void true_main(void) { return; }