apache / apache/jmeter

JMeter.bat fails if JMETER_BIN is set and bin folder contains spaces

Open
#3,672 0 comments 0 reactions 0 assignees View on GitHub
os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**mm kashiwabara** ([Bug 58415](https://bz.apache.org/bugzilla//show_bug.cgi?id=58415&redirect=false)):
Need quotes around a couple more paths in jmeter.bat (similar to https://github.com/apache/jmeter/issues/1731),

if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe

should be

if ".%JM_LAUNCH%" == "." set JM_LAUNCH=java.exe

and
if .%JMETER_BIN% == . set JMETER_BIN=%~dp0

should be

if ".%JMETER_BIN%" == "." set JMETER_BIN=%~dp0

Wouldn't so much of a problem except that Windows put a space in the middle of the name for the default program folder....

Severity: normal
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.