[ 
https://issues.apache.org/jira/browse/DRILL-5698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112159#comment-16112159
 ] 

Jose Flores commented on DRILL-5698:
------------------------------------

I have the same issue and got here when I was about to create an issue.
It's can also be reproduced this way:

- Current behaviour

bash-3.2# echo "version 1.8.0_66" | grep "version" | egrep -e "1.4|1.5|1.6"
(no output)

bash-3.2# echo "version 1.8.0_144" | grep "version" | egrep -e "1.4|1.5|1.6"
version 1.8.0_144

- With the proposal fix

bash-3.2# echo "version 1.8.0_144" | grep "version" | egrep -e "1\.4|1\.5|1\.6"
(no output)

bash-3.2# echo "version 1.6" | grep "version" | egrep -e "1\.4|1\.5|1\.6"
version 1.6

Workaround (for now): install java version not containing 14, 15 16 in the 
version (revision)

> Drill should start in embedded mode using java 1.8.0_144
> --------------------------------------------------------
>
>                 Key: DRILL-5698
>                 URL: https://issues.apache.org/jira/browse/DRILL-5698
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Darren
>              Labels: ready-to-commit
>             Fix For: 1.12.0
>
>
> Currently the start up script
> distribution/src/resources/drill-config.sh
> prevents drill from starting as the regex incorrectly captures the 144 
> portion of the version code
> this is because the regex isn't escaped 
> -"$JAVA" -version 2>&1 | grep "version" | egrep -e "1.4|1.5|1.6" > /dev/null
>  +"$JAVA" -version 2>&1 | grep "version" | egrep -e "1\.4|1\.5|1\.6" > 
> /dev/null



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to