nat-n / poethepoet

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

Slashes from .env files are parsed, newlines are not parsed properly #118

Closed monim67 closed 1 year ago

monim67 commented 1 year ago

.env file

VALUE="\\ slash works, \n newlines don't."

pyproject.toml

[tool.poe]
envfile = [".env"]

[tool.poe.tasks]
test = { script = "test:main" }

test.py

import os

def main():
    print(os.getenv("VALUE"))

When the command is executed, newlines become "n"

Poe => test
\ slash works, n newlines don't.
nat-n commented 1 year ago

Hi @monim67, thanks for reporting this issue. I'll investigate.

nat-n commented 1 year ago

This issue is fixed (along with a few similar quirks) in v0.18.1.