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

variable substitution $var and ${var} #10

Open
christianparpart opened this issue Dec 18, 2023 · 0 comments · May be fixed by #19
Open

variable substitution $var and ${var} #10

christianparpart opened this issue Dec 18, 2023 · 0 comments · May be fixed by #19
Labels
enhancement New feature or request part:language Shell Language and Semantics

Comments

@christianparpart
Copy link
Member

support variable substitution

when declaring a variable like

set foo bar

then it should be able to be used when parsing a statement again, like:

some-command $foo

but also within strings itself

echo "Hello $foo."

It may make sense to support variable substitution in the bash-like syntax as well: ${variable_name}.

We should not yet think about supporting extended just yet (e.g. ${foo:-bar} etc)

@christianparpart christianparpart added part:language Shell Language and Semantics enhancement New feature or request labels Dec 18, 2023
@christianparpart christianparpart changed the title variable substitution variable substitution $var and ${var} Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request part:language Shell Language and Semantics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant