Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5884

mvn script doesn't handle directories containing spaces

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.3
    • Fix Version/s: 3.3.9
    • Component/s: Command Line
    • Labels:
      None
    • Flags:
      Patch

      Description

      find_maven_basedir() doesn't handle a parent directory working directory containing spaces. This causes a "bad variable name" warning when starting mvn.

      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"

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

        Attachments

          Activity

            People

            • Assignee:
              hboutemy Hervé Boutemy
              Reporter:
              skitt Stephen Kitt
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: