Re: Smallest Unix Shell
Article: 8785 of alt.hackers From: trreka@uta.fi (Reijo Kalvas) Newsgroups: alt.hackers Subject: Re: Smallest Unix Shell Date: 26 Sep 1995 23:01:49 +0200 Organization: University of Tampere, Finland Lines: 22 Sender: trreka@uta.fi (Teemu Kalvas, today) Approved: me@here Distribution: world Message-ID: 449pnt$d8v@kielo.uta.fi NNTP-Posting-Host: kielo.uta.fi Status: RO
In article <43q9vk$rso@euryale.cc.adfa.oz.au>,
Warren Toomey <wkt@dolphin.cs.adfa.oz.au> wrote:
>ObHack: A challenge with a friend to come up with the smallest
>Unix shell in C.
>Here's the results, the smallest being 123 characters (124 with a \n):
ObHowAbout:
b[99];main{while(!system(gets(b)));}
38 characters and breaks probably all rules. Well, this is
alt.hackers, eh? ctrl-d exits.
>Copyright (c) 1995, Warren Toomey. Microsoft Network is prohibited from
>redistributing this work in any form, in whole or in part, without
a license.
>License to distribute this post is available to Microsoft for $1000.
>Posting without permission constitutes an agreement to these terms.
Extremely good .sig
--
Teemu (not my dad, whose account this is)