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
-
Example:
We could allow substitution of a
Cmd
into the first item of anotherCmd
. Right now you can only substitute aString
in 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