[ 
https://issues.apache.org/jira/browse/MNG-5884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hervé Boutemy updated MNG-5884:
-------------------------------
    Description: 
find_maven_basedir() doesn't handle a parent directory working directory 
containing spaces. This causes a "bad variable name" warning when starting mvn.

{noformat}me@mymachine:~/tmp/space in directory/nospace$ mvn -v
/home/me/local/maven/bin/mvn: 200: local: directory/nospace: bad variable name
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 
2015-04-22T13:57:37+02:00)
Maven home: /home/me/local/maven
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-62-generic", arch: "amd64", family: 
"unix"{noformat}

I've submitted a patch at https://github.com/apache/maven/pull/63.

  was:
find_maven_basedir() doesn't handle a current working directory containing 
spaces. This causes a warning when starting mvn.

I've submitted a patch at https://github.com/apache/maven/pull/63.


> mvn script doesn't handle directories containing spaces
> -------------------------------------------------------
>
>                 Key: MNG-5884
>                 URL: https://issues.apache.org/jira/browse/MNG-5884
>             Project: Maven
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 3.3.3
>            Reporter: Stephen Kitt
>            Priority: Minor
>
> find_maven_basedir() doesn't handle a parent directory working directory 
> containing spaces. This causes a "bad variable name" warning when starting 
> mvn.
> {noformat}me@mymachine:~/tmp/space in directory/nospace$ mvn -v
> /home/me/local/maven/bin/mvn: 200: local: directory/nospace: bad variable name
> Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 
> 2015-04-22T13:57:37+02:00)
> Maven home: /home/me/local/maven
> Java version: 1.7.0_79, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
> Default locale: fr_FR, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-62-generic", arch: "amd64", family: 
> "unix"{noformat}
> I've submitted a patch at https://github.com/apache/maven/pull/63.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to