From 78a437f078d51d60409931815ab6e705166bcfd5 Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Mon, 11 Jul 2011 01:23:37 -0700 Subject: [PATCH] rewrite the text; the shell (specifically IFS) is what does the splitting, not the commands. pkgcore and paludis follow this, portage did till late '06 when someone did something stupid. No ebuilds nor eclasses in gentoo-x86 rely on the old wording. Signed-off-by: Brian Harring --- pkg-mgr-commands.tex | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex index 10566fa..2c1bffc 100644 --- a/pkg-mgr-commands.tex +++ b/pkg-mgr-commands.tex @@ -608,12 +608,12 @@ instead of \t{-{}-with-} or \t{-{}-without-}. \end{centertable} \subsubsection{Text List Functions} -These functions check whitespace-separated lists for a particular value. +These functions take 2 or more arguments; the second and later arguments are checked to see if they +exactly match the first argument, returning shell true (0) if found, non-zero if not. \begin{description} -\item[has] Returns shell true (0) if the first argument (a word) is found in the list of subsequent - arguments, false otherwise. Guaranteed quiet. -\item[hasv] The same as \t{has}, but also prints the first argument if found. +\item[has] Return the appropiate code silently. +\item[hasv] Return the appropriate code while printing the first argument if found. \item[hasq] Deprecated synonym for \t{has}. \end{description} -- 1.7.5.3