Re: GNU/Linux stance by Richard Stallman

Brandon S. Allbery KF8NH (allbery@kf8nh.apk.net)
Sun, 28 Mar 1999 10:22:24 -0500


In message <Pine.LNX.4.04.9903281548380.11753-100000@ps.cus.umist.ac.uk>, Riley
Williams writes:
+-----
| > No, but one from me: the minimal /bin/true is 0 bytes. :-)
| > And nicely disproves the "wasted space in the blocks" comment:
| > how many blocks does an 0-byte file take?
|
| Just out of curiosity, what's the minimum /bin/false ???
+--->8

In general, "exit 1" (newline shouldn't be needed unless the shell is buggy).
bash allows a smaller variant: "! :" (again, newline optional).

I've seen somewhere a shell that lets you save an extra byte by using "let
1", but the ones I tested set an exit status of 0 for that (which is arguably
more correct). (The shell in question predefined an "alias false='let 1'"
IIRC.)

I don't know of any smaller versions. That doesn't mean they don't exist...
someone somewhere may have a shell with a :-equivalent which returns a
nonzero exit status.

-- 
brandon s. allbery	[os/2][linux][solaris][japh]	 allbery@kf8nh.apk.net
system administrator	     [WAY too many hats]	   allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering			 KF8NH
     We are Linux. Resistance is an indication that you missed the point.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/