HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by misternugget | Hacker News Reader
Parent
Full thread
misternugget
·
Rust's debug-print {:?} quotes the path here.
View on HN
hn92726819
·
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...
Reply on news.ycombinator.com