You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pdm run src/cat.py <(echo foo)
Traceback (most recent call last):
File "[OMISSIS]/src/cat.py", line 3, in<module>
with open(argv[1]) as f:
^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/dev/fd/18'
$
Expected behavior
$ pdm run src/cat.py <(echo foo)
foo
$
NB: this is also the actual behavior calling directly the python intepreter:
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
have the following
cat.py
in a simple pdm projectI can execute the script with
pdm run src/cat.py <myfile>
successfully.Actual behavior
It seems that process substitution is not supported:
Expected behavior
$ pdm run src/cat.py <(echo foo) foo $
NB: this is also the actual behavior calling directly the python intepreter:
$ .venv/bin/python src/cat.py <(echo foo) foo $
Environment Information
The text was updated successfully, but these errors were encountered: