WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 39657383

(no title)

misternugget | 2 years ago

Rust's debug-print {:?} quotes the path here.

discuss

order

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...
powered by hn/api // news.ycombinator.com