Using cmd_lib=1.9 panics the mount with options="".
fn mount(s: &impl Stack, options: &str) -> String { let blk_dev = s.path(); let mp = format!("/tmp/{}", rand_name()); run_cmd!(rm -rf $mp).unwrap(); run_cmd!(mkdir -p $mp).unwrap(); run_cmd!(mount $options $blk_dev $mp).unwrap();
To narrow the problem, I wrote a small reproducer.
use cmd_lib::*; fn main() { dbg!(run_cmd!(ls)); let options = ""; dbg!(run_cmd!(ls $options)); }
Conclusion:
For now, I updated cmd_lib to 0.9.
I think it is now fixed in the latest. rust-shell-script/rust_cmd_lib@6572e89
Once released, I will finish this task.
Activity
akiradeveloper commentedon May 1, 2024
Using cmd_lib=1.9 panics the mount with options="".
To narrow the problem, I wrote a small reproducer.
Conclusion:
akiradeveloper commentedon May 4, 2024
For now, I updated cmd_lib to 0.9.
akiradeveloper commentedon May 5, 2024
I think it is now fixed in the latest. rust-shell-script/rust_cmd_lib@6572e89
Once released, I will finish this task.