Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news.harvard.edu!das-news!tlb
From: tlb@chardonnay.harvard.edu (Trevor Blackwell)
Subject: Re: ParcPlace Image knows how to start itself
In-Reply-To: charles.herrick@amd.com's message of Thu, 29 Sep 1994 20:54:55 GMT
Message-ID: <TLB.94Sep29184723@chardonnay.harvard.edu>
Sender: usenet@das.harvard.edu
Reply-To: tlb@das.harvard.edu
Organization: Harvard University, GLAN Systems Group
References: <CwwsrM.154@txnews.amd.com>
Date: Thu, 29 Sep 1994 22:47:23 GMT
Lines: 19


> I just found out that if you make a ParcPlace Smalltalk
> image executable, and then invoke it on the commandline,
> it tells the OS to run "st80VM" with itself as the
> command argument.
> 
> How did they do that? Inquiring (temporarily speechless) minds want to know!

%head -1 vw.im
exec st80VM $1 $2 $3 $4 $5 $6 $0

When you execute something that doesn't start with any particular
magic number, it runs sh on it. Sh reads the single line, and fires it
up.

--
Trevor Blackwell         tlb@das.harvard.edu          (617) 495-8912
He who laughs last thinks slowest.
Disclaimer: My opinions only.
