rust-lang / rust-installer

The Bourne shell installer used by Rust and Cargo
Apache License 2.0
60 stars 68 forks source link

fix cases where there is no /bin/echo #26

Closed globin closed 9 years ago

brson commented 9 years ago

It is just infuriating that after all these decades we can't count on echo behaving consistently or even existing.

brson commented 9 years ago

What system are you using that doesn't have /bin/echo?

globin commented 9 years ago

Nixos links its whole system together for different environments and therefor doesn't have binaries in /bin or /usr/bin. The only binaries there are /bin/sh and /usr/bin/env.

Another possibility instead of the fix in this PR could possibly be to always call /usr/bin/env echo, but I don't know if that maps to /bin/echo in the cases it's needed.