jmtd opened a new pull request #556:
URL: https://github.com/apache/maven/pull/556


   In some circumstances the init script called `which`, which may or may
   not be available on the host system. Instead, use `command -v`, which is
   nearly equivalent. One area it differs is if the command being queried
   is defined as a shell alias. To avoid that, call `unalias -a` to
   undefine any aliases in the subshell. Also call `unset -f command` to
   avoid the situation where "command" has been re-defined as a shell
   function.
   
   See here for more information on this approach:
   <https://pubs.opengroup.org/onlinepubs/009695399/utilities/command.html>
   
   Tested with bash, sh (bash invoked as sh), posh, dash, zsh and mksh.
   
   https://issues.apache.org/jira/browse/MNG-7270
   
   `mvn clean verify` passed.
   
   I've signed the CLA.
   
   ----
   
   To make clear that you license your contribution under 
   the [Apache License Version 2.0, January 
2004](http://www.apache.org/licenses/LICENSE-2.0)
   you have to acknowledge this by using the following check-box.
   
    - [X] I hereby declare this contribution to be licenced under the [Apache 
License Version 2.0, January 2004](http://www.apache.org/licenses/LICENSE-2.0)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to