commit: 11e783db48d1095bb33ac54b04cbc0d7518a3f37 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Oct 26 15:43:28 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Oct 26 15:43:28 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=11e783db
function-reference/query-functions: Correct description of "has". Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> function-reference/query-functions/text.xml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/function-reference/query-functions/text.xml b/function-reference/query-functions/text.xml index 8511c93..da24380 100644 --- a/function-reference/query-functions/text.xml +++ b/function-reference/query-functions/text.xml @@ -65,19 +65,17 @@ query variables and similar state. </tr> <tr> <ti> - <c>has flag string</c> + <c>has word item...</c> </ti> <ti> - Returns true if <c>flag</c> is included in the flag list <c>string</c> - (example: <c>if has ccache $FEATURES ; then</c>). - The condition is inverted if prefixed with an exclamation mark, - <c>!flag</c>. + Returns true if <c>word</c> is found in the list of subsequent + <c>item</c> arguments (example: <c>if has ccache $FEATURES ; then</c>). It is guaranteed that <c>has</c> produces no output. </ti> </tr> <tr> <ti> - <c>hasq flag string</c> + <c>hasq word item...</c> </ti> <ti> Deprecated synonym for <c>has</c>. @@ -85,10 +83,10 @@ query variables and similar state. </tr> <tr> <ti> - <c>hasv flag string</c> + <c>hasv word item...</c> </ti> <ti> - As <c>has</c>, echoes <c>flag</c> on success. + As <c>has</c>, echoes <c>word</c> on success. </ti> </tr> <tr>