<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 17 Jul 2020 at 11:48 pm, tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">We briefly touched on this at the last board meeting and I just got egg on my face trying to demonstrate how easy it was to run a Squeak commandline job.<br>
<br>
The immediate problem is that the squeak.sh script included in the current linux-x64 package does not let us run things in the form -<br>
./squeak.sh my.image <a href="http://my.st" rel="noreferrer" target="_blank">my.st</a><br>
because sometihng is making the VM see 'my.image <a href="http://my.st" rel="noreferrer" target="_blank">my.st</a>' as a single (bad) filename.<br>
With the shell debugging turned on it seems the last line of the script <br>
exec "${VM}" "${IMAGE}"<br>
is resulting in the eventual command being <br>
exec /home/tim/Squeak/{blah=blah}/bin/squeak 'my.image <a href="http://my.st" rel="noreferrer" target="_blank">my.st</a>'<br>
If I manually run that line without the quotes around the image & st filenames it runs properly. I imagine the must be some magic tweak to the script that would solve this? Any suggestions anyone?<br>
<br>
The equivalent script included in the development build VMs is completely different, doing interesting things related to GDB and LLDPATH and ... other stuff I don't understand. That also appears to wrap the image & st files in ' '.<br>
<br>
The equivalent script in the all-in-one is again different and does some working out of which VM to run per the platform but doesn't look like it would handle the st file any better.<br>
<br>
The matter discussed at the SOB was that none of them actually do anything akin to a 'proper unix install', which is in itself a can of parasitic brain worms I'd prefer to leave to other people. <br>
<br>
tl;dr - <br>
a) what magic would make the final command not have ' ' wrapped around the image & st filenames?</blockquote><div dir="auto"><br></div><div dir="auto">Dropping the quotes around ${IMAGE} should help in your case. IIRC we added those quotes to allow paths with spaces. Looks like the script needs to do a better job separating image from image args and passing them in correctly.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><br>
b) can we try to make a less confusing system of scripts and have it/them do better? Cue dtl to rant a little on this...</blockquote><div dir="auto"><br></div><div dir="auto">The AIO bundles come with multiple VMs for Linux (x86 and arm32), so the script needs to do some additional work. It'd still be good to reuse as much of the common logic as possible.</div><div dir="auto"><br></div><div dir="auto">Fabio</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
Strange OpCodes: CDC: Clear Disks and Crash<br>
<br>
<br>
<br>
</blockquote></div></div>