From 6c2fe4a197faad6b1feb532c805562e25a0b9a24 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 17 Aug 2010 08:17:36 -0600 Subject: [PATCH] doc: improve AS_VAR_IF details * doc/autoconf.texi (Polymorphic Variables) : Make it clear that user must supply quotes as needed. * THANKS: Update. Suggested by Randall Cotton. Signed-off-by: Eric Blake --- ChangeLog | 8 ++++++++ THANKS | 1 + doc/autoconf.texi | 7 ++++--- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fbc69db5e..2ce085b41 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2010-08-17 Eric Blake + + doc: improve AS_VAR_IF details + * doc/autoconf.texi (Polymorphic Variables) : Make it + clear that user must supply quotes as needed. + * THANKS: Update. + Suggested by Randall Cotton. + 2010-08-16 Ralf Wildenhues Fix Autotest --errexit to exit after XPASSing tests. diff --git a/THANKS b/THANKS index 3b2358996..8f2691e1b 100644 --- a/THANKS +++ b/THANKS @@ -327,6 +327,7 @@ Ralf Corsepius corsepiu@faw.uni-ulm.de Ralf Menzel menzel@ls6.cs.uni-dortmund.de Ralf S. Engelschall rse@engelschall.com Ralf Wildenhues Ralf.Wildenhues@gmx.de +Randall Cotton recotton@earthlink.net Reuben Thomas rrt@sc3d.org Richard Dawe rich@phekda.freeserve.co.uk Richard Stallman rms@gnu.org diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 05705f20a..9d29b9c50 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -13491,12 +13491,13 @@ done @comment AS_VAR_GET is intentionally undocumented; it can't handle @comment trailing newlines uniformly, and forks too much. -@defmac AS_VAR_IF (@var{var}, @ovar{value}, @ovar{if-equal}, @ +@defmac AS_VAR_IF (@var{var}, @ovar{word}, @ovar{if-equal}, @ @ovar{if-not-equal}) @asindex{VAR_IF} Output a shell conditional statement. If the contents of the -polymorphic shell variable @var{var} match the string @var{value}, -execute @var{if-equal}; otherwise execute @var{if-not-equal}. Avoids +polymorphic shell variable @var{var} match the string @var{word}, +execute @var{if-equal}; otherwise execute @var{if-not-equal}. @var{word} +must be a single shell word (typically a quoted string). Avoids shell bugs if an interrupt signal arrives while a command substitution in @var{var} is being expanded. @end defmac -- 2.47.3