[ 
https://issues.apache.org/jira/browse/MNG-6919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17116631#comment-17116631
 ] 

James Z.M. Gao commented on MNG-6919:
-------------------------------------

> for /f "tokens=1,2 delims==" %A in ("a.txt")
This will parse the literal string "a.txt", the spaces in the string is ok.

> for /f "usebackq tokens=1,2 delims==" %A in ("a.txt")
This will parse the content in file a.txt, space in the path is ok.

> for /f "usebackq tokens=1,2 delims==" %A in (a.txt)
This will parse the content in file a.txt, the path must not contain spaces.

example codes:


{code:cmd}
C:\Users\james>more a.txt
k=v

C:\Users\james>for /f "tokens=1,2 delims==" %A in ("a.txt") do (echo %A to %B)

C:\Users\james>(echo a.txt to  )
a.txt to

C:\Users\james>for /f "usebackq tokens=1,2 delims==" %A in ("a.txt") do (echo 
%A to %B)

C:\Users\james>(echo k to v  )
k to v
{code}


> maven-wrapper on windows
> ------------------------
>
>                 Key: MNG-6919
>                 URL: https://issues.apache.org/jira/browse/MNG-6919
>             Project: Maven
>          Issue Type: Bug
>          Components: Bootstrap & Build
>    Affects Versions: 3.7.0-candidate
>            Reporter: James Z.M. Gao
>            Priority: Minor
>
> new maven-wrapper inherit 2 bugs for windows batch scripts:
> # cannot read the config ".mvn\wrapper\maven-wrapper.properties" correctly 
> when the full path has space.
> # -eof style of cmd scripts are not CRLF- (This is fixed by assembly-plugin 
> `lineEnding` settings)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to