Sam Trenholme's webpage
This article was posted to the Usenet group alt.hackers in 1995; any technical information is probably outdated.

Re: Smallest Unix Shell

Article: 8816 of alt.hackers
From: (Warren Toomey)
Newsgroups: alt.hackers
Subject: Re: Smallest Unix Shell
Date: 9 Oct 1995 05:10:32 GMT
Organization: Australian Defence Force Academy
Lines: 29
Approved: santa.claus
Distribution: world
Message-ID: 45aas8$
Status: RO

|> Some time ago (Reijo Kalvas) happily mumbled:
|> >Warren Toomey <> wrote:
|> >>ObHack: A challenge with a friend to come up with the smallest
|> >>Unix shell in C.
|> >ObHowAbout:
|> >
|> >b[99];main{while(!system(gets(b)));}
|> >
|> >38 characters and breaks probably all rules.

Yep, system() actually calls /bin/sh, which is naughty. The shell should
be fully self-supporting.


	Reverse-engineering the tp, dtp and itp backup formats so I could
read our old Unix backup tapes. Getting the resulting files into a bootable
disk image which I could load onto a PDP-11 simulator would take a few
alt.hacker postings itself.


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.

Parent Parent Parent

Back to index