Closed hohwille closed 1 year ago
Indeed I implemented this so this can not work: https://github.com/devonfw/ide/blob/59785e4e5dcf8e47ec6cd59b9e6e40f8ccc3e829/scripts/src/main/resources/scripts/functions#L1284
IMHO we simply need to check if the version_prefix
(excluding the asterisk) ends with a digit (0-9
).
If yes, the old behavior shall still apply but otherwise the [^0-9]
part from the grep regex shall be omitted.
It seems that .
is matched in regex syntax by grep
command so we would need to escape this accordingly (replace .
with \.
in version_prefix
via ${version_prefix/./\\.}
...
Examples:
1
, 1.0
, 1.1
, 1.1.2-beta3
, etc. but not 10
, 11.1
or so. --> we add [^0-9]
1.
so 1.0
, 1.1
, 1.1.2-beta3
, etc. but not 1
, 10
, 11.1
or so.
I configured
JAVA_VERSION=17.*
. According to #893 my expectation was that this would work. However it did not:It only works with
JAVA_VERSION=17*
.