Terminal doesn't handle dots in a correct way #16397

Closed
opened 2026-01-31 05:06:21 +00:00 by claunia · 3 comments
Owner

Originally created by @ghost on GitHub (Jan 13, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19042.0

Other Software

Maven 3.8.1
JDK latest 1.8 available (1.8.0.312 in my case)
PowerShell 7.2.1

Steps to reproduce

1.Have java and maven installed.
2.Create new maven project.
3.Try to add maven wrapper for the project with mvn wrapper:wrapper -Dmaven=3.8.4

Expected Behavior

I'm expecting maven wrapper to configure maven with version 3.8.4 for further use.
I should get --- maven-wrapper-plugin:3.1.0:wrapper (default-cli) @ directory-admin --- [INFO] Unpacked bin type wrapper distribution org.apache.maven.wrapper:maven-wrapper-distribution:zip:bin:3.1.0 [INFO] Configuring .mvn/wrapper/maven-wrapper.properties to use Maven 3.8.4 and download from https://qhrtech.jfrog.io/artifactory/qhr-maven-legacy [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS as a result.

Actual Behavior

Terminal only parse -Dmaven=3 as version and counts rest .8.4 as a next parameter instead of just version of maven I'm trying to install.
image

Originally created by @ghost on GitHub (Jan 13, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19042.0 ### Other Software Maven 3.8.1 JDK latest 1.8 available (1.8.0.312 in my case) PowerShell 7.2.1 ### Steps to reproduce 1.Have java and maven installed. 2.Create new maven project. 3.Try to add maven wrapper for the project with `mvn wrapper:wrapper -Dmaven=3.8.4` ### Expected Behavior I'm expecting maven wrapper to configure maven with version 3.8.4 for further use. I should get ` --- maven-wrapper-plugin:3.1.0:wrapper (default-cli) @ directory-admin --- [INFO] Unpacked bin type wrapper distribution org.apache.maven.wrapper:maven-wrapper-distribution:zip:bin:3.1.0 [INFO] Configuring .mvn/wrapper/maven-wrapper.properties to use Maven 3.8.4 and download from https://qhrtech.jfrog.io/artifactory/qhr-maven-legacy [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS` as a result. ### Actual Behavior Terminal only parse `-Dmaven=3` as version and counts rest `.8.4` as a next parameter instead of just version of maven I'm trying to install. ![image](https://user-images.githubusercontent.com/59942112/149391919-7630f289-b28d-4a26-81a4-f20abaf330e1.png)
Author
Owner

@ianjoneill commented on GitHub (Jan 13, 2022):

This is a PowerShell thing - you need to quote the parameter.

image

It works in cmd without the quotes.

image

@ianjoneill commented on GitHub (Jan 13, 2022): This is a PowerShell thing - you need to quote the parameter. ![image](https://user-images.githubusercontent.com/5821575/149406344-a62b475d-2cad-44c0-a06d-57efed406721.png) It works in cmd without the quotes. ![image](https://user-images.githubusercontent.com/5821575/149406846-a00ba0df-353c-46f9-9e18-5b68907a5e22.png)
Author
Owner

@zadjii-msft commented on GitHub (Jan 13, 2022):

Yep, that looks like it's by design to me. Thanks for the quick answer @ianjoneill!

@zadjii-msft commented on GitHub (Jan 13, 2022): Yep, that looks like it's by design to me. Thanks for the quick answer @ianjoneill!
Author
Owner

@ghost commented on GitHub (Jan 13, 2022):

Huh, didn't know that. Thank you for the answer!

@ghost commented on GitHub (Jan 13, 2022): Huh, didn't know that. Thank you for the answer!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16397