<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><pre class="">><i class=""> I'm sure I remember someone making this work but can't spot any info right
</i>><i class=""> now.
</i>><i class="">
</i>><i class=""> One should be able to make it so that a .st file could be made executable,
</i>><i class=""> start it with something akin to
</i>><i class=""> #! squeak my.image
</i>><i class=""></i></pre><div class=""><br class=""></div><div class="">The man page describes that [1]. </div><div class=""><br class=""></div><div class=""><p class="">"  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
</p><div class="">
<br class="webkit-block-placeholder"></div><dl compact="compact" class=""><dt class=""></dt><dd class="">
<pre class="">#![bindir]/squeak --
Transcript cr; show: 'Hello, world'.
</pre>

</dd></dl><p class="">
and then made executable with
</p><div class="">
<br class="webkit-block-placeholder"></div><dl compact="compact" class=""><dt class=""></dt><dd class="">
<pre class="">chmod +x hello.sq
</pre>

</dd></dl><p class="">
and then invoked by running the script file directly:
</p><div class="">
<br class="webkit-block-placeholder"></div><dl compact="compact" class=""><dt class=""></dt><dd class="">
<pre class="">SQUEAK_IMAGE="foo.image"
export SQUEAK_IMAGE
./hello.sq”</pre><pre class=""><br class=""></pre><pre class="">Chris </pre>

</dd></dl><div class=""><br class=""></div></div><div class=""><div class=""><br class=""></div></div><div class="">[1] <a href="http://squeakvm.org/unix/doc/squeak.html" class="">http://squeakvm.org/unix/doc/squeak.html</a></div></body></html>