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

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Jun 12 13:54:49 UTC 2020


I just rechecked this under Ubuntu. Same issue here. Do you agree that it is a bug that the pwd is changed when starting the VM?

<http://www.hpi.de/>

Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Thiede, Christoph
Gesendet: Samstag, 6. Juni 2020 17:18:44
An: Squeak Dev
Betreff: [squeak-dev] Starting an image from SqueakConsole manipulates pwd


Hi all,

consider the following terminal session under Windows:

```powershell
> 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:
Hello

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.

Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200612/f3157d28/attachment.html>


More information about the Squeak-dev mailing list