Is there a way to run a full command as a single string using Cmd
? At first I thought I might be able to do something like this but this does not work
Cmd.exec! "bash" ["echo hello world"]
-c
?
Cmd.exec! "bash" ["-c", "echo hello world"]
That's it, thanks!
Isaac Van Doren has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC