我想在Rust中执行shell命令.在Python中我可以这样做:
import os cmd = r'echo "test" >> ~/test.txt' os.system(cmd)
但鲁斯特只有std::process::Command.我怎么能执行shell命令cd xxx && touch abc.txt呢?
std::process::Command
cd xxx && touch abc.txt
shell rust
rust ×1
shell ×1