Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-dotenv cannot parse valid bash value with a single quote "escaped" inside single quotes #544

Open
YuryHrytsuk opened this issue Dec 18, 2024 · 0 comments

Comments

@YuryHrytsuk
Copy link

Problem

This is a valid bash ENV excerpt which escapes a single quote inside value surrounded by singles quotes (see this SO comment)

❯ VAR='I'"'"'m a student'echo $VAR
I'm a student

However python dotenv cannot parse this value. Assume that .env file is created with VAR='I'"'"'m a student' line inside

❯ dotenv list
Python-dotenv could not parse statement starting at line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant