[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15833719#comment-15833719 ] Michael Osipov commented on MNG-5837: - This is a regression introduced in newer script changed. Solaris' {{sh}} is notoriously not POSIX-compliant. > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal >Assignee: Michael Osipov > Fix For: 3.5.0-candidate > > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15063888#comment-15063888 ] Erlend Birkedal commented on MNG-5837: -- After upgrading to Maven 3.3.3 and still finding this broken on Solaris (and this ticket unresolved as well), I gave up and just replaced {{#\!/bin/sh}} with {{#\!/bin/bash/}} in {{bin/mvn}}... > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal >Assignee: Christian Schulte > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15064645#comment-15064645 ] ASF GitHub Bot commented on MNG-5837: - Github user asfgit closed the pull request at: https://github.com/apache/maven/pull/50 > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal >Assignee: Christian Schulte > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15064674#comment-15064674 ] Hudson commented on MNG-5837: - SUCCESS: Integrated in maven-3.x #1175 (See [https://builds.apache.org/job/maven-3.x/1175/]) [MNG-5837] "mvn" script invokes /bin/sh but requires /bin/bash functions (schulte: rev d980040ffd4e4ad9343171140270c1725c19a6fe) * apache-maven/src/bin/mvnyjp * apache-maven/src/bin/mvn * apache-maven/src/bin/mvnDebug > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal >Assignee: Christian Schulte > Fix For: 3.4.0 > > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15063189#comment-15063189 ] Christian Schulte commented on MNG-5837: Do you have a final patch available working on Solaris? > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal >Assignee: Christian Schulte > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15063199#comment-15063199 ] ASF GitHub Bot commented on MNG-5837: - Github user ChristianSchulte commented on the pull request: https://github.com/apache/maven/pull/50#issuecomment-165627334 Can you please 'rebase' the commit onto 'origin/master' so that I can merge it without conflicts? > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal >Assignee: Christian Schulte > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14734376#comment-14734376 ] ASF GitHub Bot commented on MNG-5837: - Github user birkedal commented on the pull request: https://github.com/apache/maven/pull/50#issuecomment-138463968 It works just fine after the switch to backticks :+1: I have no opinion on whether that other idiom is better or not. One more little detail; if JAVA_HOME is not set I get `mvn: !: not found` from the exclamation mark in the test on line 175. I would guess the same applies for lines 144 and 147 as well. > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14733698#comment-14733698 ] ASF GitHub Bot commented on MNG-5837: - Github user josephw commented on the pull request: https://github.com/apache/maven/pull/50#issuecomment-138297741 @birkedal, does this change look okay after the switch to backticks? Or, if you're a Solaris user, does that other idiom seem better? > Syntax error in bin/mvn on Solaris SPARC > > > Key: MNG-5837 > URL: https://issues.apache.org/jira/browse/MNG-5837 > Project: Maven > Issue Type: Bug > Components: Command Line >Affects Versions: 3.3.1 > Environment: Solaris 10 >Reporter: Erlend Birkedal > > When running {{mvn}} on Solaris 10 we get the following error: > {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' > unexpected{code} > Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (MNG-5837) Syntax error in bin/mvn on Solaris SPARC
[ https://issues.apache.org/jira/browse/MNG-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14576237#comment-14576237 ] ASF GitHub Bot commented on MNG-5837: - GitHub user josephw opened a pull request: https://github.com/apache/maven/pull/50 MNG-5837: Use a subshell, rather than the 'local' keyword, for POSIX compliance 'local' is not POSIX, but supported by most shells. However, it's not supported by Solaris's /bin/sh, so use a subshell instead. Tested on OS X by invoking with `/bin/ksh`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/josephw/maven MNG-5837-avoid-non-posix-local-keyword Alternatively you can review and apply these changes as the patch at: https://github.com/apache/maven/pull/50.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #50 commit 1efce60e0594f7445f946aeb34f89e36907fdaf1 Author: Joseph Walton j...@kafsemo.org Date: 2015-06-07T13:29:39Z MNG-5837: Use a subshell, rather than the 'local' keyword, for POSIX compliance. 'local' is not POSIX, but supported by most shells. However, it's not supported by Solaris's /bin/sh, so use a subshell instead. Syntax error in bin/mvn on Solaris SPARC Key: MNG-5837 URL: https://issues.apache.org/jira/browse/MNG-5837 Project: Maven Issue Type: Bug Components: Command Line Affects Versions: 3.3.1 Environment: Solaris 10 Reporter: Erlend Birkedal When running {{mvn}} on Solaris 10 we get the following error: {code:none}/opt/apache-maven-3.3.1/bin/mvn: syntax error at line 200: `(' unexpected{code} Looks like similas issues as in MNG-5658 -- This message was sent by Atlassian JIRA (v6.3.4#6332)