]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Handle shell comments in AT_CHECK.
authorEric Blake <ebb9@byu.net>
Mon, 6 Apr 2009 18:13:02 +0000 (12:13 -0600)
committerEric Blake <ebb9@byu.net>
Tue, 7 Apr 2009 02:52:44 +0000 (20:52 -0600)
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
test correctly.  Latent bug in handling shell comment was first
fixed 2008-11-20, but regressed two patches later.
* tests/autotest.at (Shell comment in command): New test.
* NEWS: Document the fix.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
NEWS
lib/autotest/general.m4
tests/autotest.at

index fba76adf6e6b5a896ac1fbb7eb81d6c49347fe10..4310b2656d50180f304de8ce65229788eb26f161 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-04-06  Eric Blake  <ebb9@byu.net>
 
+       Handle shell comments in AT_CHECK.
+       * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
+       test correctly.  Latent bug in handling shell comment was first
+       fixed 2008-11-20, but regressed two patches later.
+       * tests/autotest.at (Shell comment in command): New test.
+       * NEWS: Document the fix.
+
        Hard fail any test with syntax errors.
        * lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
        Guarantee test failure on syntax error, rather than inheriting
diff --git a/NEWS b/NEWS
index 23110ac1187d202c67b8070aff851ec9e284f38f..e91fc39310fa26c20877915b9f2f0f614f865bd8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,12 @@
 GNU Autoconf NEWS - User visible changes.
 
+* Major changes in Autoconf 2.64 (2009-??-??) [stable]
+  Released by Eric Blake, based on git versions 2.63b.*.
+
+** Ensure AT_CHECK can support commands that include a # given with
+   proper m4 quoting.  For shell comments, this is a new feature; for
+   non-shell comments, this fixes a regression introduced in 2.63b.
+
 * Major changes in Autoconf 2.63b (2009-03-31) [beta]
   Released by Eric Blake, based on git versions 2.63.*.
 
index 77058544af63117002c74fb1cffd95f77b6a204c..11a067cc5b1ecb4c516a91fb5751f22dd8911bc6 100644 (file)
@@ -1997,7 +1997,7 @@ at_fn_check_prepare_notrace],
 dnl We know at build time that tracing COMMANDS is always safe.
 [[at_fn_check_prepare_trace],]dnl
 dnl COMMANDS may contain parameter expansions; expand them at runtime.
-[[at_fn_check_prepare_dynamic "AS_ESCAPE([$1], [`\"])"])[]]dnl
+[[at_fn_check_prepare_dynamic "AS_ESCAPE([[$1]], [`\"])"])[]]dnl
 [_m4_popdef([at_reason])])
 
 
index a49ea1b7ff15de82e54a60e887dbab38397fcfcc..c5a8b58628c00434718211763a912297fe98d412 100644 (file)
@@ -322,6 +322,12 @@ bar
   [AT_NO_CMDSUBST])
 
 
+AT_CHECK_AT_TEST([Shell comment in command],
+  [my_echo=echo
+   AT_CHECK([$my_echo one [#] two], [], [one
+])])
+
+
 ## ------------------------- ##
 ## ${...} in test commands.  ##
 ## ------------------------- ##