doc: improve AS_VAR_IF details

* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
clear that user must supply quotes as needed.
* THANKS: Update.
Suggested by Randall Cotton.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Eric Blake 2010-08-17 08:17:36 -06:00
parent 00d80808b5
commit 6c2fe4a197
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2010-08-17 Eric Blake <eblake@redhat.com>
doc: improve AS_VAR_IF details
* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_IF>: Make it
clear that user must supply quotes as needed.
* THANKS: Update.
Suggested by Randall Cotton.
2010-08-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix Autotest --errexit to exit after XPASSing tests.

1
THANKS
View File

@ -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

View File

@ -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