[Development] [Interest] Executing PowerShell command with quotes using QProcess

Damian Ivanov damianatorrpm at gmail.com
Thu Apr 3 12:28:02 CEST 2014


one could use "cmd /c echo hello" at least I do so, or this somehow bad?

2014-04-03 12:36 GMT+03:00 Joerg Bornemann <joerg.bornemann at digia.com>:
> On 03-Apr-14 02:34, Sze Howe Koh wrote:
>
>>> Nor on Windows's prompt:
>>> C:\>echo """hello"""
>>> """hello"""
>
> Checking arguments with the echo shell built-in on Windows is not a good
> idea. It behaves (not even) slightly different from real executables.
>
> Create an executable that prints its arguments and you will find that
> triple double-quotes (sextquotes? ;)) will print:
>
> C:\>printAllArgs """hello"""
> "hello"
>
>
> Cheers,
>
> Joerg
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Development mailing list