[ https://jira.codehaus.org/browse/MNG-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=358834#comment-358834 ]
Chris Bandy commented on MNG-5658: ---------------------------------- [~jesboat], I would normally agree that {{$()}} is preferred over backticks, but Solaris seems to have it's quirks: http://stackoverflow.com/a/8697973 Another answer to that same SO question links to Solaris 10 standards which claim POSIX.1?2001 compliance. The closest version I could find/link is the the 2004 edition: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03 > Syntax error in bin/mvn on Solaris SPARC > ---------------------------------------- > > Key: MNG-5658 > URL: https://jira.codehaus.org/browse/MNG-5658 > Project: Maven > Issue Type: Bug > Affects Versions: 3.2.2 > Environment: Solaris SPARC 10 with Oracle JDK 1.7.0_60 > Reporter: Frank Langelage > Assignee: Jason van Zyl > Fix For: 3.2.3 > > Attachments: maven_bin_mvn.patch > > > The latest addition to bin/mvn breaks mvn running on Solaris. > Syntax error in line 86. > The Bourne shell /bin/sh does not understand this syntax with the brackets. > if [[ -z "$JAVA_HOME" && -x /usr/libexec/java_home ]] ; then > # > # Apple JDKs > # > export JAVA_HOME=$(/usr/libexec/java_home) > fi > ;; > changing the line with the assignment to > export JAVA_HOME=/usr/libexec/java_home > like the lines before makes it running again. -- This message was sent by Atlassian JIRA (v6.1.6#6162)