Doc: Add description for mode argument of qmake's $$system()

Fixes: QTBUG-70926
Change-Id: Icfd13352cd64053c11502058188041ad16f6c287
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Paul Wicking 2018-10-29 12:30:34 +01:00 committed by Jani Heikkinen
parent 3fbf8fbc85
commit afba8fcc49

View File

@ -3038,6 +3038,7 @@
\snippet code/doc_src_qmake-manual.pro 59 \snippet code/doc_src_qmake-manual.pro 59
\target qmake-cat
\section2 cat(filename[, mode]) \section2 cat(filename[, mode])
Returns the contents of \c filename. You can specify the following options Returns the contents of \c filename. You can specify the following options
@ -3404,6 +3405,10 @@
\snippet code/doc_src_qmake-manual.pro 72 \snippet code/doc_src_qmake-manual.pro 72
Like \l {qmake-cat}{$$cat()}, the \a mode argument takes \c blob, \c lines,
\c true, and \false as value. However, the legacy word splitting rules
(i.e. empty or \c true, and \c false) differ subtly.
If you pass \c stsvar, the command's exit status will be stored in that If you pass \c stsvar, the command's exit status will be stored in that
variable. If the command crashes, the status will be -1, otherwise a variable. If the command crashes, the status will be -1, otherwise a
non-negative exit code of the command's choosing. Usually, comparing non-negative exit code of the command's choosing. Usually, comparing