Skip to content

dollar sign in string substitution variable #773

Discussion options

You must be logged in to vote

Drop quotes in password:

const login = 'someUser'
-const pass = '"pwdWithA$"'
+const pass = 'pwdWithA$'

await $`someDbCommandLine user=${login} password=${pass}`

Read more about https://google.github.io/zx/quotes

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by antonmedv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants