From: Eric Blake Date: Tue, 17 Aug 2010 14:17:36 +0000 (-0600) Subject: doc: improve AS_VAR_IF details X-Git-Tag: v2.68~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2fe4a197faad6b1feb532c805562e25a0b9a24;p=thirdparty%2Fautoconf.git 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 --- diff --git a/ChangeLog b/ChangeLog index fbc69db5..2ce085b4 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 3b235899..8f2691e1 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 05705f20..9d29b9c5 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