Repository navigation
Conversation
|
Ping on this. The gist is that set_key writes |
693a637 to
88ab642
Compare
|
Rebased on top of #680. That one fixed the parser round-trip by escaping the quote inside the single-quoted value, but the line it writes ( |
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
88ab642 to
ea79fc9
Compare
|
AI-assisted independent check at With set_key(path, "VALUE", "I'm $DOTENV_PROBE")writes Could a regression test require the original value through both readers? #670 handles shell escaping for I reproduced this using only temporary files and generated literal values on Linux/Python 3.12. The variable case fails with both |
When a value contains a
',set_keypreviously emitted\'inside a single-quoted shell value, which is not valid POSIX shell (sosource .envfails) and does not round-trip through dotenv's parser. Such values are now written double-quoted with\and"escaped, which is shell-source-safe and parses back to the original value. Closes #543.