top | item 39657383 (no title) misternugget | 2 years ago Rust's debug-print {:?} quotes the path here. discuss order hn newest hn92726819|2 years ago Yes, 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&editio...
hn92726819|2 years ago Yes, 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&editio...
hn92726819|2 years ago