[
https://issues.apache.org/jira/browse/MWRAPPER-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17889061#comment-17889061
]
Ryan Worcester commented on MWRAPPER-152:
-----------------------------------------
I know almost nothing about POSIX, I just copied MWRAPPER-88.
It seems to me that all the wrapper types should use the same mvnw source
rather than 2 files.
Let me know if you need any more info.
> only-mvnw is not POSIX compatible
> ---------------------------------
>
> Key: MWRAPPER-152
> URL: https://issues.apache.org/jira/browse/MWRAPPER-152
> Project: Maven Wrapper
> Issue Type: Bug
> Components: Maven Wrapper Scripts
> Affects Versions: 3.3.2
> Reporter: Ryan Worcester
> Priority: Major
> Labels: posix
>
> The maven wrapper type only-script file mvnw declares a shebang of #!/bin/sh
> which is the default shell. The default shell can be any shell therefore for
> this script to work as expected it needs to only use things common to all
> shells.
> v3.3.2 at
> [https://github.com/apache/maven-wrapper/blob/maven-wrapper-3.3.2/maven-wrapper-distribution/src/resources/only-mvnw#L161]
> uses mktemp which is not POSIX compliant. mktemp doesn't exist in ksh (korn
> shell) and doesn't exist in some versions of bash. My app's server has bash
> "GNU bash, version 5.0.0(2){-}release{-}(powerpc-ibm-aix6.1.9.0)" which lacks
> mktemp.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)