[squeak-dev] Starting an image from SqueakConsole manipulates pwd

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sat Jun 6 15:18:44 UTC 2020

Hi all,

consider the following terminal session under Windows:

> cat .\test-output.st
FileStream stdout nextPutAll: 'Hello World'; lf ; flush.
Smalltalk quitPrimitive.
> &"C:\Program Files (x86)\Squeak\SqueakConsole.exe" -headless .\FreshTrunk\FreshTrunk.image .\test-output.st

Expected output:

Actual output:
The VM window opens (first error because I specified the option headless) and shows up a debugger "Error: No content to install". What this error wants to mean is that it could not find the specified file.
What I have to do to fix the output is to change the call to the following:

> &"C:\Program Files (x86)\Squeak\SqueakConsole.exe" -headless .\FreshTrunk\FreshTrunk.image ..\test-output.st

IMO this is a very confusing behavior because it makes it impossible to specify a relative path from the console without thinking "around the corner".
If I would run ls ..\test-output.st in the same terminal context, I would get a FileNotFoundException.

I never met a comparable situation where starting a script/application from the console manipulated the pwd even before resolving the specified arguments. Is this really desirable? Could we consider this a bug?

How is the behavior on other platforms? I cannot test this at the moment because I am getting heartbeat warnings under Linux again.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200606/2abd4dac/attachment.html>

More information about the Squeak-dev mailing list