Initial installer .profile syntax is not POSIX compatible

I noticed that .profile is modified by the rustup installer and adds

source "$HOME/.cargo/env"

While this works with bash (which is most of us here) it is a bashism and .profile isn't bash specific. There would no downside of using

. "$HOME/.cargo/env"

which would make it usable across all POSIX shells.

Just saying

Good catch! It looks like this was fixed recently, and the fix will be included in the next version of rustup:

https://github.com/rust-lang/rustup/pull/2616

Oops, I missed that it was already reported

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.