[Interest] Defining a string in qmake command line

Thiago Macieira thiago.macieira at intel.com
Thu Jan 23 18:31:31 CET 2014


On quinta-feira, 23 de janeiro de 2014 09:01:43, Thiago Macieira wrote:
> If you're running from the command-line, you need to escape it further:
> 
> 	qmake 'DEFINES+=SERIAL=\\\"f9a/z\\\"'
> or
> 	qmake DEFINES+=SERIAL=\\\\\\"f9a/z\\\\\\"

I should have tested before sending. The number of backslashes is wrong. You 
need 7, not 6:

$ ls \\\\\\\"a\\\\\\\"   
ls: cannot access \\\"a\\\": No such file or directory

Exercise left to the reader: why didn't I check with echo?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140123/ce566750/attachment.sig>


More information about the Interest mailing list