Closed redragonx closed 3 years ago
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.
Hi, I would like to know how you can combine commands without hardcoding the actual cmd in the macro?
Not sure how escaping works in these cases.
Rough Example:
When I run the above in full code. I get the following output error: