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

Bash-style interpolation in strings, closes #169 #280

Merged
merged 1 commit into from
Sep 8, 2019

Conversation

odino
Copy link
Collaborator

@odino odino commented Sep 7, 2019

Now you can embed variables inside strings by prefixing them with
$. Literal $ simply need a \. This aligns the string interpolation
syntax with commands, and makes it easier to switch between running
a command (`$some $command`) and echoing it (echo("$some $command")).

Now you can embed variables inside strings by prefixing them with
`$`. Literal `$` simply need a `\`. This aligns the string interpolation
syntax with commands, and makes it easier to switch between running
a command (`` `$some $command` ``) and echoing it (`echo("$some $command")`).
@odino odino added this to the 1.8.x milestone Sep 7, 2019
@odino odino merged commit 430e40a into 1.8.x Sep 8, 2019
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.

None yet

1 participant