You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How would I pipe commands with no hardcoding of command strings? #32
You can construct command string in your way and pass it to bash:
let cmd_str = ....;
let data = run_fun!(bash -c $cmd_str)?;
It is not encouraged to do things like this, since it could introduce command injection and also you need to make the correct quotes. But anyway you are already doing things like that, so take your own risk.
Activity
rust-shell-script commentedon Sep 2, 2021
You can construct command string in your way and pass it to bash:
It is not encouraged to do things like this, since it could introduce command injection and also you need to make the correct quotes. But anyway you are already doing things like that, so take your own risk.