6 ms·
Rust's debug-print {:?} quotes the path here.
by misternugget 3y ago
Rust's debug-print {:?} quotes the path here.
- hn92726819 3y agoYes, but rust's quoting does not match shell's quoting. Imagine a path like: $(rm -rf /*; echo /) That's a valid Unix path, but rust's quoting does nothing to stop it: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b04557b99c6acba32235d68053b8248c https://play.rust-lang.org/?version=stable&mode=debug&editio...