[
https://issues.apache.org/jira/browse/BIGTOP-1589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Mackrory updated BIGTOP-1589:
----------------------------------
Attachment: 0001-BIGTOP-1589.-Prioritization-is-broken-in-bigtop-dete.patch
I think the only way to iterate through regular expressions without expanding
them via bash (instead of waiting until we can use ls -rd to do it like we want
to) is to store them in arrays and then do some magic to make sure they all
stay 1-dimensional until we iterate through the final list. Patch attached...
tested fairly exhaustively - even on bash on SLES 11 and RHEL 5 in case some
array features were newish - but please do review judiciously :)
> Prioritization is broken in bigtop-detect-javahome
> --------------------------------------------------
>
> Key: BIGTOP-1589
> URL: https://issues.apache.org/jira/browse/BIGTOP-1589
> Project: Bigtop
> Issue Type: Bug
> Components: general
> Affects Versions: 0.8.0
> Reporter: Sean Mackrory
> Assignee: Sean Mackrory
> Priority: Critical
> Fix For: 0.9.0
>
> Attachments:
> 0001-BIGTOP-1589.-Prioritization-is-broken-in-bigtop-dete.patch
>
>
> bigtop-detect-javahome uses 'ls -rd' to sort the JDKs in each category in
> reverse lexicographical order, but I believe when we switched to having
> separate variables defined for each major JDK version we overrode that
> mechanism so older JDKs still take precedence over newer ones.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)