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

Nested backtick interpolation #39416

Closed
alhirzel opened this issue Jan 27, 2021 · 1 comment
Closed

Nested backtick interpolation #39416

alhirzel opened this issue Jan 27, 2021 · 1 comment

Comments

@alhirzel
Copy link
Contributor

Parsing bug?

# works
show_all = true
a = show_all ? `-a` : ``
`ls $a` |> run

# seems like a nice shorthand, but results in an error on Julia 1.3.1/1.6.0beta1
`ls $(show_all ? `-a` : ``)` |> run

# ERROR: LoadError: UndefVarError: @a_cmd not defined
# in expression starting at REPL[2]:1
@alhirzel
Copy link
Contributor Author

Ah crap, nevermind, #32609

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

No branches or pull requests

1 participant