[Interest] qmake command usage

Alex Strickland sscc at mweb.co.za
Tue May 19 05:30:25 CEST 2015


On 2015/05/19 01:34 AM, Dale Marchand wrote:

> Can someone explain why the following line in a .pro file fails to
> create a softlink:
>
> system(ln -s /home/marchand/test.xml /home/marchand/test2.xml)
>
> but when the output is stored in a variable, the link is created as
> expected:
>
> THROW_AWAY_VAR=$$system(ln -s /home/marchand/test.xml
> /home/marchand/test2.xml)
>
> This is using qmake bundled with Qt 5.4.1.

Perhaps it quotes the latter for you but expects the first to be quoted? :

system("ln -s /home/marchand/test.xml /home/marchand/test2.xml")

-- 
Regards
Alex

---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com




More information about the Interest mailing list