On 5/19/16 9:49 AM, Hugo wrote:
On Thursday, 19 May 2016 at 05:06:44 UTC, Vladimir Panteleev wrote:
Here you can see the final string value of the program argument in
your program.

The correct invocation is: mytest "my dir\\"

What you suggest is non-standard in Windows, and would require
distributing the application with some form of comment saying you have
to use double backslashes, which is unprofessional. Software should
serve the user and not the other way round.

Then complain to Microsoft :) This is Microsoft's command shell sending that parameter to your program.

Notice I am not debating the escape character, but the inconsistency of
buildNormalizedPath, which IMHO should have worked and fixed the
trailing backslash.

buildNormalizedPath is being send the string `my dir"`, what is it supposed to do with that?

-Steve

Reply via email to