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

tim Rowledge tim at rowledge.org
Sun May 5 04:11:24 UTC 2019

I'm sure I remember someone making this work but can't spot any info right now.

One should be able to make it so that a .st file could be made executable, start it with something akin to
#! squeak my.image

and continue with

| t  f |
t:= [f := 4784969 fastDoublingFib asString] timeToRun.

FileStream stdout
	nextPutAll: 'fib(4784969) = '; 
	nextPutAll: f; 
	nextPutAll: 'time = '; 
	nextPutAll: t asString; 
	nextPutAll: ' mS'; 

To effectively filein the remainder of the file contents.
Shouldn't we?

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: IAM: Increase Amperage Above Maximum

More information about the Squeak-dev mailing list