This is the minimal example to reproduce the problmen
Cargo.toml
[dependencies]
cmd_lib = "1.3"
main.rs
use cmd_lib::run_cmd;
fn main() {
run_cmd! {
mkdir -p build;
cd build;
mkdir -p nested;
cd nested;
}.unwrap();
}
Run the above code gives the followin error
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "Running [\"cd\", \"nested\"] failed: cd nested: No such file or directory" }', src/main.rs:8:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
This is the minimal example to reproduce the problmen
Cargo.toml
main.rs
Run the above code gives the followin error