-
Hi, Great tool! I'm trying to run the following command inside my
However, when I run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Indeed, the default task type (cmd) is executed as a subprocess without a shell. If you want to use shell features like the pipe operator then you need to create a shell task which can be done like so: [tool.poe.tasks]
clean_so.shell = """
find . -name "*.so" | xargs rm -f
find . -name "*.pyd" | xargs rm -f
""" Be aware that this will only work as expected if a POSIX shell can be found in the host environment, which is not always the case on windows. See the section of the readme about task types for more details. |
Beta Was this translation helpful? Give feedback.
Indeed, the default task type (cmd) is executed as a subprocess without a shell. If you want to use shell features like the pipe operator then you need to create a shell task which can be done like so:
Be aware that this will only work as expected if a POSIX shell can be found in the host environment, which is not always the case on windows.
See the section of the readme about task types for more details.