Hacker News new | ask | show | jobs
by misternugget 830 days ago
Rust's debug-print {:?} quotes the path here.
1 comments

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...