Substitute a command into another command? #390
LightAndLight
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Example:
We could allow substitution of a
Cmdinto the first item of anotherCmd. Right now you can only substitute aStringin this position:This idea occurred to me when trying to "optionally" pass an argument to a command. I can't do something like
echo a ${case b? of; None () -> ""; Some b -> b}, because that passes always passes the second argument (which has the value of""whenb? = None()).Beta Was this translation helpful? Give feedback.
All reactions