We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Part of #631
Just realized that the new typed args means that the val builtin can take a (parsed) block directly, in addition to the old string interface.
So instead of eval $mystr, you can be passed a block as a param, and do eval (myblock)
eval $mystr
eval (myblock)
It also means that the literal eval { echo hi } is equivalent to { echo hi } (shell brace group), which makes sense!
eval { echo hi }
{ echo hi }
This is turning out nicely!
I think we still need functions eval_word() (returns string) and eval_expr() (returns value_t) though
eval_word()
eval_expr()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Part of #631
Just realized that the new typed args means that the val builtin can take a (parsed) block directly, in addition to the old string interface.
So instead of
eval $mystr
, you can be passed a block as a param, and doeval (myblock)
It also means that the literal
eval { echo hi }
is equivalent to{ echo hi }
(shell brace group), which makes sense!This is turning out nicely!
I think we still need functions
eval_word()
(returns string) andeval_expr()
(returns value_t) thoughThe text was updated successfully, but these errors were encountered: