mvnvm requires bash 4
Issue #2
resolved
If you run mvnvm with bash 3 it will not work, the arguments will not be passed through to the mvn call.
You should install bash 4+.
Comments (6)
-
-
reporter Always helpful Charles.
-
reporter - changed status to resolved
Should work on bash 3 now.
-
reporter Issue
#3was marked as a duplicate of this issue. -
reporter correctly define variable as an array, correctly resolve
#2→ <<cset d080d46f810d>>
-
reporter I was declaring an array as a normal variable. In bash 4 this created an empty array when i started using it as an array layer, in bash 3, this created an array of a single (empty) element, causing the problem.
Declaring the variable correctly as an array means it behaves the same with bash 3 and bash 4.
- Log in to comment
Could you write a script that will dynamically install whatever version of bash that a shell script will require?