<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
<div>Hi all,</div>
<div><br>
</div>
<div>consider the following terminal session under Windows:</div>
<div><br>
</div>
<div>```powershell</div>
<div>> cat .\test-output.st</div>
<div>FileStream stdout nextPutAll: 'Hello World'; lf ; flush.</div>
<div>Smalltalk quitPrimitive.</div>
<div>> &"C:\Program Files (x86)\Squeak\SqueakConsole.exe" -headless .\FreshTrunk\FreshTrunk.image .\test-output.st</div>
<div>```</div>
<div><br>
</div>
<div><b>Expected output:</b></div>
<div>Hello</div>
<div><br>
</div>
<div><b>Actual output:</b></div>
<div>The VM window opens (<b>first </b><span><b>error</b> because I specified the option headless) and shows up a debugger "<span><b>Error:</b> No content to install". What this error wants to mean is that it could not find the specified file.</span></span></div>
<div>What I have to do to fix the output is to change the call to the following:</div>
<div><br>
</div>
<div><span>> &"C:\Program Files (x86)\Squeak\SqueakConsole.exe" -headless .\FreshTrunk\FreshTrunk.image ..\test-output.st</span><br>
</div>
<div><span><br>
</span></div>
<div><span>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".</span></div>
<div><span>If I would run ls ..\test-output.st in the same terminal context, I would get a FileNotFoundException.</span></div>
<div><span><br>
</span></div>
<div><span>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?</span></div>
<div><span><br>
</span></div>
<div><span>How is the behavior on other platforms? I cannot test this at the moment because I am getting heartbeat warnings under Linux again.</span></div>
<div><span><br>
</span></div>
<div>Best,</div>
<div>Christoph</div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</body>
</html>