[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doc: improve AS_VAR_IF details
From: |
Eric Blake |
Subject: |
[PATCH] doc: improve AS_VAR_IF details |
Date: |
Tue, 17 Aug 2010 08:19:26 -0600 |
* 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 <address@hidden>
---
Thanks for your suggested wording. This actually implements it.
ChangeLog | 8 ++++++++
doc/autoconf.texi | 7 ++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fbc69db..2ce085b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-08-17 Eric Blake <address@hidden>
+
+ 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 <address@hidden>
Fix Autotest --errexit to exit after XPASSing tests.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 05705f2..9d29b9c 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -13491,12 +13491,13 @@ Polymorphic Variables
@comment AS_VAR_GET is intentionally undocumented; it can't handle
@comment trailing newlines uniformly, and forks too much.
address@hidden AS_VAR_IF (@var{var}, @ovar{value}, @ovar{if-equal}, @
address@hidden 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
--
1.7.2.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] doc: improve AS_VAR_IF details,
Eric Blake <=