aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-10-26 16:43:28 +0100
committerUlrich Müller <ulm@gentoo.org>2020-10-26 16:43:28 +0100
commit11e783db48d1095bb33ac54b04cbc0d7518a3f37 (patch)
treea781931050ac34d046715d2cdfe22a724b59da36 /function-reference
parentLink to make.conf man page where it is referenced. (diff)
downloaddevmanual-11e783db48d1095bb33ac54b04cbc0d7518a3f37.tar.gz
devmanual-11e783db48d1095bb33ac54b04cbc0d7518a3f37.tar.bz2
devmanual-11e783db48d1095bb33ac54b04cbc0d7518a3f37.zip
function-reference/query-functions: Correct description of "has".
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'function-reference')
-rw-r--r--function-reference/query-functions/text.xml14
1 files 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>