[Interest] Interest Digest, Vol 44, Issue 51

Dale Marchand dale.marchand at gmail.com
Tue May 19 17:11:10 CEST 2015


On 5/18/2015 11:46 PM, interest-request at qt-project.org 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")
Unfortunately no.  Tried that and still no luck without the variable 
assignment.

Dale



More information about the Interest mailing list