Open quexxon opened 3 days ago
I think the issue is here. That should check for the executable mode bit and check that the file is a regular file. I can take a stab at this.
Oh yes! Thanks for noticing this
That code is for command -v
I think, which does need to be changed
And then also executor.py LookupExecutable()
needs to be changed
I think that needs the same file check, regardless of exec_required
?
I appreciate any help!
Also let me know if you need help with spec tests
For these it should be fairly satisfying. The tests start in a tempdir, so you can do
mkdir -p cat
PATH=. cat
or something like that
And then you assert status and/or stdout
I also use grep to navigate the code and tests, like
grep LookupExecutable */*.py
and
grep 'command -v' spec/*.test.sh
and so forth
There is a cheat sheet here - https://github.com/oils-for-unix/oils/wiki/Oil-Dev-Cheat-Sheet
This affects OSH/YSH. Discovered due to a .NET package in my path with a
tr
directory for translations.