Search Issue Tracker

Fixed

Fixed in 2021.3.36f1, 2022.3.21f1, 2023.2.13f1, 2023.3.0b7

Votes

0

Found in

2021.3.32f1

2022.3.13f1

2023.1.20f1

2023.2.0f1

2023.3.0a14

Issue ID

UUM-55979

Regression

Yes

[Windows] Double backslash becomes single backslash when passing it to the command line argument

--

-

Reproduction steps:
1. Build the attached project “TestProject” with the following command line: “Unity.exe -batchmode -timestamps -nographics -quit -projectPath "[PROJECT_PATH]" -buildWindowsPlayer "[BUILD_FOLDER_PATH]\build.exe" -logFile "[BUILD_FOLDER_PATH]\log.txt" -intermediateDirectoryPath="\\serverName\..\.."“
2. Open "[BUILD_FOLDER_PATH]\log.txt"
3. Search the string "-intermediateDirectoryPath="

Expected result: “-intermediateDirectoryPath=\\serverName\..\..” is saved as a path for networked location
Actual result: “-intermediateDirectoryPath=\serverName\..\..” is saved in the log.txt

Reproducible with: 2021.3.32f1, 2022.3.13f1, 2023.1.20f1, 2023.2.0f1, 2023.3.0a14

Reproducible on: Windows 10
Not reproducible on: No other environment tested

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.