-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Default to bash shell when $SHELL is missing #6766
Comments
It's equally confused upstream, always something. $ unset SHELL
$ docker-machine env
The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.
Error: Unknown shell
$ I guess people normally don't unset their SHELL ? |
First seen in #6643 |
Probably worth filing a bug in the https://github.com/actions/runner repository ? Looks like it is written in .NET, and I'm not really sure where the VM / images are. |
Similar failure with |
I would be happy to review a PR that defaults to BASH_WITH_WARNNING if nothing else is found. (better not not giving anything) however there should be a Warnning to the user in the Hint text in form a Comment |
we could produce something like this for default
|
Cool let me give it a try, thanks @afbjorklund @medyagh |
@medyagh : note that the initial bug is with libmachine, it prints an uncommented string on stdout... if shell == "" {
fmt.Printf("The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag.\n\n")
return "", ErrUnknownShell
} So even when
Which basically means moving the And handle the unset ("") case, before it is even passed to libmachine ? |
thanks for that finding ! yes I agree the problem is with the libmachine |
The current message is somewhat confused:
The text was updated successfully, but these errors were encountered: