autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autotest buglet/AIX awk limitation


From: Paul Eggert
Subject: Re: autotest buglet/AIX awk limitation
Date: Thu, 02 Jun 2005 16:32:09 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Thanks for reporting that.  I installed this fix.

2005-06-02  Paul Eggert  <address@hidden>

        * lib/autotest/general.m4 (AT_INIT): Don't create a regular
        expression of unbounded size when processing the --list
        option.  This runs afoul of a limit of 399 bytes per regular
        expression on AIX.  Problem reported by Ralf Wildenhues.

--- general.m4  20 May 2005 08:13:16 -0000      1.179
+++ general.m4  2 Jun 2005 23:30:13 -0000       1.180
@@ -442,12 +442,17 @@ AT_TESTSUITE_NAME test groups:
 
 _ATEOF
   # "  1 42  45 " => "^(1|42|45);".
-  at_groups_pattern=`echo "$at_groups" | sed 's/^  *//;s/  *$//;s/  */|/g'`
   echo "$at_help_all" |
-    awk 'BEGIN { FS = ";" }
-        { if ($[1] !~ /^('"$at_groups_pattern"')$/) next }
-        { if ($[1]) printf " %3d: %-18s %s\n", $[1], $[2], $[3]
-          if ($[4]) printf "      %s\n", $[4] } '
+    awk 'BEGIN {
+          for (n = split("'"$at_groups"'", a); n; n--) selected[[a[n]]] = 1
+          FS = ";"
+        }
+        {
+          if (selected[[$ 1]]) {
+            printf " %3d: %-18s %s\n", $ 1, $ 2, $ 3
+            if ($ 4) printf "      %s\n", $ 4
+          }
+        }'
   exit 0
 fi
 m4_divert_pop([HELP_END])dnl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]