Docs for exporting environment do not work on Intel Mac
kevin-june opened this issue · comments
In the installation commands section of the README, the docs state to run:
./install-rust-toolchain.sh --toolchain-version 1.64.0.0
. export-esp.sh
However, the export command doesn't seem to work on my x86 Mac:
% . export-esp.sh
.: no such file or directory: export-esp.sh
The file is present in the current working directory:
% ls export-esp.sh
export-esp.sh
I can solve this by running:
. ./export-esp.sh
or
source export-esp.sh
Thoughts? Am I missing something or is this a typo? Thanks!
Hi! Thanks for opening the issue, do you mind detailing your environment (macOS version, shell...). Using . export-esp.sh
works fine in macOS Monterey 12.5 on M1 with bash 3.2.57 and fish 3.4.1. I am happy to make the change to . ./export-esp.sh
as it also works, but I would like to understand what is causing the issue.
Certainly!
I'm using macOS Monterey 12.6 on Intel, with:
- zsh 5.9 (x86_64-apple-darwin21.3.0)
- GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin21)
My terminal is configured to use zsh
. Perhaps that is the difference?
Let me know if I can provide any other info.
Hi! Would you mind trying with no zsh
?
Sure!
If I change the default shell to bash
, then the problem goes away; . export-esp.sh
works.
Thanks for all your tests! We will merge #156 to solve the issue for zsh
users.
Much appreciated!