Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53764

qmake documentation for system() is misleading

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.2, 5.7.1
    • 5.6.0
    • Documentation
    • None
    • e3051e6591ca50c6f3fa7cbc5eba935ce6f04ad9

    Description

      The documentation for the system() function of qmake (e.g. here: http://doc.qt.io/qt-5/qmake-test-function-reference.html#system-command ) has an example of usage:

      system(ls /bin):HAS_BIN=FALSE

      This example is however misleading as it seems to imply that if /bin does not exist (HAS_BIN=FALSE), then the system() command will succeed. In reality, the opposite happens: if /bin exists, system() will succeed.

      I suggest to change the example to say e.g. HAS_BIN=TRUE.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            leenam Leena Miettinen
            rmoyen RĂ©mi Moyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes