[squeak-dev] Running Squeak fro ma unix shell script file with #! squeak...

K K Subbu kksubbu.ml at gmail.com
Mon May 6 13:19:23 UTC 2019


On 06/05/19 3:02 AM, David T. Lewis wrote:
> The other thing that still works is taking an image file and prepending
> it with 512 characters of gunk before the actual image, in which the first
> part of those 512 characters is a shebang line. All of the VMs will try
> skipping over the first 512 bytes of an image file if the first few bytes
> do not look like a valid image format identifier, which allows you to
> treat the image file as both a unix script and a Squeak image file at
> the same time.

I suspect this goes back to a time when early PCs and Macs had a 
512-byte bootsector in the beginning of their disks. So one could pack 
bootsector+image+st into a raw disk or transfer it across network 
without worrying about filesystems or layouts.

It would still be useful for embedded boards.

Regards .. Subbu


More information about the Squeak-dev mailing list