The "--interactive" flag needs to be inserted after the executable rather than appended to the arguments
The in-image CommandLineHandler needs to be able to handle executable appended flags at end of commandline
VM passes its determination of headless/interactive status to the Image viaVirtualMachine>>getSystemAttribute: so that it doesn't need to munge the commandline at all.
When the VM munges the commandline to insert the
--interactive
flag, it is simply appending it which interferes in-Image CommandLineHandl-ingWith shell-only WSL Ubuntu...
./pharo Pharo.image eval 1 + 2
produces expected output...From Windows 10 cmd.exe...
pharoconsole.exe --headless Pharo9.0-SNAPSHOT-64bit-099690e.image eval 1 + 2
works okay...but...
pharoconsole.exe Pharo9.0-SNAPSHOT-64bit-099690e.image eval 1 + 2
produces error...VM info:
There seem three options:
VirtualMachine>>getSystemAttribute:
so that it doesn't need to munge the commandline at all.