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

Robert Stupp commented on CASSANDRA-7676:
-----------------------------------------

Hm - not sure (not a shell experrt) but {{-z}} tests, if the arg is empty and 
{{-x}} check if it's executable. But the first one should be sufficient.

> bin/cassandra should complain if $JAVA is empty or not an executable
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-7676
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7676
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Robert Stupp
>            Assignee: Robert Stupp
>            Priority: Trivial
>         Attachments: java_not_found-fix.txt
>
>
> If JAVA_HOME points to a non-existing directory, bin/cassandra just complains 
> with {{[node1 ERROR] /Users/snazy/.ccm/test/node1/bin/cassandra: line 151: 
> exec: : not found}} (via ccm).
> Patch checks if {{$JAVA}} is empty or does not point to an executable and 
> prints appropriate error message.
> (Patch against trunk)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to