[squeak-dev] Running Squeak fro ma unix shell script file with #! squeak...
brasspen at gmail.com
Sun May 5 15:40:11 UTC 2019
> I'm sure I remember someone making this work but can't spot any info right
> 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
The man page describes that .
" It is also possible to make 'self interpreting' scripts by adding an 'interpreter line' to the start of the script. The 'hello.sq' file could be changed to
Transcript cr; show: 'Hello, world'.
and then made executable with
chmod +x hello.sq
and then invoked by running the script file directly:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev