xonsh
xonsh copied to clipboard
Permission denied when referencing executable without extension
Current Behavior
Accessing an executable with an explicit extension works, but without the extension results in permission denied.
~ 🐚 ~\pipx\venvs\pip-run\Scripts\python.exe
Python 3.13.3 (tags/v3.13.3:6280bb5, Apr 8 2025, 14:47:33) [MSC v.1943 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
~ 🐚 ~\pipx\venvs\pip-run\Scripts\python
xonsh: subprocess mode: permission denied: C:\Users\jaraco\pipx\venvs\pip-run\Scripts\python
~ 🐚 '.EXE' in $PATHEXT
True
Expected Behavior
Application should be executed, honoring the PATHEXT, same as on other shells.
xonfig
+-----------------------------+-----------------+
| xonsh | 0.19.1 |
| Python | 3.13.3 |
| PLY | 3.11 |
| have readline | False |
| prompt toolkit | 3.0.50 |
| shell type | prompt_toolkit |
| history backend | json |
| pygments | 2.19.1 |
| on posix | False |
| on linux | False |
| on darwin | False |
| on windows | True |
| on cygwin | False |
| on msys2 | False |
| is superuser | False |
| default encoding | utf-8 |
| xonsh encoding | utf-8 |
| encoding errors | surrogateescape |
| xontrib 1 | vox |
| xontrib 2 | voxapi |
| xontrib 3 | jaraco.xonsh |
| RC file | [] |
| UPDATE_OS_ENVIRON | False |
| XONSH_CAPTURE_ALWAYS | False |
| XONSH_SUBPROC_OUTPUT_FORMAT | stream_lines |
| THREAD_SUBPROCS | True |
| XONSH_CACHE_SCRIPTS | True |
+-----------------------------+-----------------+
For community
⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment