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

docs: clarify syntax for escaping dollar curlies #11717

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

llakala
Copy link
Contributor

@llakala llakala commented Oct 18, 2024

Motivation

3b388f6 added some wonderful information on escaping dollar curlies within a multiline string. This is specifically helpful for writing shell scripts within something like writeShellScriptBin / writeShellApplication.

However, this information was only added to the String Interpolation page of the manual. While it is useful there, the String Literals page also could do with a mention of it. The String Literals page already mentions escaping dollar curlies within a double-quoted string ("\${"). Because the syntax for doing this within multiline strings differs, it should be mentioned on the same page. I think having this info in both locations is correct -- it's relevant for both sections.

I'm sure some of my wording could be rephrased, and the markdown could be tweaked to make the example and note more readable. Feel free to nitpick small details.

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant