halyph / mind-flow

blog and/or personal knowledge base
https://halyph.github.io/blog/
Creative Commons Attribution Share Alike 4.0 International
25 stars 6 forks source link

sdkman issues #23

Open halyph opened 5 years ago

halyph commented 5 years ago

Ref

I have updated Macos to Mojave

$ sdk update
An outdated version of bash was detected on your system!

We recommend upgrading to bash 4.x, you have:

  3.2.57(1)-release

Need to use brute force to replace candidates...
dlgoodchild commented 5 years ago

I landed on this while googling for the same error, just need to do:

$ sdk selfupdate force
cowlike commented 5 years ago

I'm also on MacOS with its old bash. I got sdk update to work but it's clunky.

First I updated bask with brew install bash Then...

# in the default shell
$ echo $BASH_VERSINFO
3
# run bash from /usr/local/bin installed from brew
$ bash
$ echo $BASH_VERSINFO
5
# bring in my sdk settings and everything then works
$ source ~/.bash_profile
$ sdk v

SDKMAN 5.7.3+337
akyong commented 4 years ago

same here

RomanKostenko commented 4 years ago

+1

mjparme commented 4 years ago

It would be nice if the error message told you to execute sdk selfupdate force. All it currently says is to use brute force, but doesn't tell you how.

Why is bash 4 necessary anyway? Seems to work just fine with 3.x.