lkml.org 
[lkml]   [1999]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: GNU/Linux stance by Richard Stallman
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.897 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site