Skip to content

Improve batch files to support path contains white space #540

@ghost

Description

Issue

Mobius batch files( like .cmd/.bat ) does not support path contains special character like (white space).

Repro/Example

Rename your folder local Mobius to has a space or move it into a directory that full path contains space.
Then run build\localmode\RunSamples.cmd will fail at load-spark-env.cmd

Another way to repro it like following : will get error at compilation :

git clone https://github.com/Microsoft/Mobius  "space Mobius"
cd "space Mobius"
build\Build.cmd

Additional

To easy check and list all the potential batch files can use a tool in testMobius
lzmw -l -f "\.(cmd|bat)$" -rp .
lzmw -l -f "\.(cmd|bat)$" -rp . --nd "^(testMobius|target|packages)$|maven" --np "build.tools.(spark-\d+|apache)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions