nat-n / poethepoet

A task runner that works well with poetry.
https://poethepoet.natn.io/
MIT License
1.4k stars 58 forks source link

Running shell commands with piping operator "|" results in unknown operator error #93

Closed adam2392 closed 1 year ago

adam2392 commented 1 year ago

Hi,

Great tool!

I'm trying to run the following command inside my pyproject.toml file with poetry.

[tool.poe.tasks]
clean_so = """
find . -name "*.so" | xargs rm -f
find . -name "*.pyd" | xargs rm -f
"""

However, when I run poetry run poe clean_so, I get the following error: find: |: unknown primary or operator. Is there a way to run shell commands with shell-command operators?