While we are at it, let's check .com and .bat (tree, I think is included with Windows, but nodevars might not be on your system for me it was installed with scoop nodejs):
I'll follow up with a PR with and verify test coverage for .exe, .cmd,.com and .bat executables on and not-on the PATH with and without :dir specified.
Symptom
On Windows, using clj-msi, from a CMD shell, from an empty dir, launch a REPL:
Unexpected behaviour:
Test with
npx
(part of nodejs and how borkdude noticed this behaviour) First, double-check thatnpx
has a.cmd
ext:Run
npx
with:dir
and we get an error:Expected behaviour:
The
npx
should run successfully. Like when we do not specify a:dir
:Or like for
java
when we do specify a:dir
(you'll notice java has an.exe
extension):Diagnosis
On a Slack chat with borkdude we explored behaviour of
ProcessBulder
from Windows REPL:java
succeedsjava.exe
succeedsnpx
failsnpx.cmd
succeeds:While we are at it, let's check
.com
and.bat
(tree
, I think is included with Windows, butnodevars
might not be on your system for me it was installed with scoop nodejs):tree.com
succeeds:tree
fails:nodevars.bat
succeeds:nodevars
fails:To Address...
From borkdude on our chat:
Next steps
I'll follow up with a PR with and verify test coverage for
.exe
,.cmd
,.com
and.bat
executables on and not-on the PATH with and without:dir
specified.