Skip to content

Fix set_key for values containing single quotes - #9

Open
zielonyogor wants to merge 1 commit into
mainfrom
fix/543-set-key-single-quote
Open

zielonyogor wants to merge 1 commit into
mainfrom
fix/543-set-key-single-quote

Conversation

@zielonyogor

Copy link
Copy Markdown
Collaborator

Fixes theskumar#543.

set_key wrote 'I\'m', which is a shell syntax error. Values containing ' are now written double-quoted with \\ and " escaped, which shells and the dotenv parser both read back correctly. Values without ' are unchanged.

Caveat: inside double quotes a shell still expands $ and backticks.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zielonyogor zielonyogor changed the title Fix set_key for values containing single quotes fix/543-set-key-single-quote: Fix set_key for values containing single quotes Dec 3, 2026
@zielonyogor zielonyogor changed the title fix/543-set-key-single-quote: Fix set_key for values containing single quotes Fix set_key for values containing single quotes Dec 3, 2026
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

Successfully merging this pull request may close these issues.

set_key does not handle single quote ' inside value properly

1 participant