Investigate requirements to support fish shell
See original GitHub issueFrom @leecow on June 3, 2017 15:59
Submitted by @egilh
I’m not able to install dotnet-dev-2.0.0-preview1-005977 on Ubuntu 16.04 via instructions found here https://www.microsoft.com/net/core/preview#linuxubuntu when I have fish as my default shell.
Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'. fish: dotnet new > /dev/null 2>&1 || true ^ dpkg: error processing package dotnet-dev-2.0.0-preview1-005977 (--configure): subprocess installed post-installation script returned error exit status 127 Errors were encountered while processing: dotnet-dev-2.0.0-preview1-005977 E: Sub-process /usr/bin/dpkg returned an error code (1)
Doesn’t matter if I switch to bash or not, the error is the same. To be able to complete installation, bash needs to be set as default shell
chsh -s /bin/bash
Installation works as expected after this.
Using fish as my default shell is a big advantage for me (and others). Please make sure Debian/Ubuntu packages allows for the use of fish as default shell.
Copied from original issue: dotnet/core-setup#2613
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (1 by maintainers)
Top GitHub Comments
This thread does have several things going on. From my understanding, the original question is to invest if we can install dotnet CLI on a machine with default shall as fish. I tried on a clean Azure Debian 8. It succeed. So I am closing it
commands before installation
@wli3 ^^