Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
misternugget
· 2y ago · 0 comments
Rust's debug-print {:?} quotes the path here.
Comments
[–]
hn92726819
2y 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...