pipx run
produces PermissionError when combined with bash process substitution
#1292
Labels
pipx run
produces PermissionError when combined with bash process substitution
#1292
Describe the bug
Attempting to run a Python script through bash process substitution with pipx results in a PermissionError. The same script runs without issues when executed directly with Python. This indicates a potential issue with how pipx handles file descriptors or temporary files created by process substitution.
How to reproduce
Install
pipx==1.4.3
Expected behavior
Pipx should execute the script provided through process substitution, printing "Hello World!" to the console, similar to the direct Python execution:
Context
Supporting this behaviour would allow to run scripts in-place using a clipboard:
$ pipx run <(pbpaste)
The text was updated successfully, but these errors were encountered: