-
Notifications
You must be signed in to change notification settings - Fork 84
dotnet-install script causes shell to exit #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@JohnRusk |
@johnbeisner The reporter mentioned that they only see this when the script fails - for example, when dependencies are missing. The bug seems very real to me. I can reproduce it on my system too. Here is one way to see the error:
(But More interestingly, even if the script works, what happens when you run The script does Here is a smaller reproducer for the issue:
If you save this as |
@johnbeisner I'm seeing this on Powershell as well. You can trivially reproduce it by running |
Just a note of another side effect of this issue. The scripts recently started checking another dependency (libcurl). For the users of my app, I'd written up instructions on how to install the necessary prerequisites. Now, there was a new prerequisite, not listed in my instructions. So bang!, the dotnet install script exited and closed their shell. In other words, this issue magnifies the effect of any other change or problem that may be introduced to the script. |
We agreed not to fix the error handling when sourcing dotnet-install.sh script at the moment as it requires a lot of efforts for changing the error handling. As the workaround, the script can be launched in the subshell. |
Steps to reproduce
wget https://dot.net/v1/dotnet-install.sh
chmod 700 dotnet-install.sh
source dotnet-install.sh --shared-runtime --version 1.1.2
Expected behavior
A message is displayed about missing dependencies (libuwind8 etc)
Actual behavior
It just exits my shell. Unless its a subshell, this results in my whole terminal window just closing.
Workaround
Install all the dependencies first, with
sudo apt-get install curl libunwind8 gettext apt-transport-https
The text was updated successfully, but these errors were encountered: