jhermann commented on issue #334: mvn.cmd: prevent autorun execution in final 
exit command
URL: https://github.com/apache/maven/pull/334#issuecomment-611415748
 
 
   I have this autorun script:
   ```
   @echo off
   IF /I x"%COMSPEC%"==x%CMDCMDLINE% (
       cd "%USERPROFILE%"
       clear
       set PATH=%PATH:;C:\Program Files (x86)\Common 
Files\Oracle\Java\javapath=%
   )
   ```
   The IF guard does not seem to work for the call you have. Using /D is the 
safe option for scripted cmd calls, leaving it out is generally not robust (the 
above IF is just a last defense).
   
   And obviously, clearing the screen after a mvn run is somewhat sub-optimal.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to