]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AIX awk cannot swallow literals longer than 399.
authorStepan Kasal <kasal@ucw.cz>
Sat, 4 Jun 2005 07:30:05 +0000 (07:30 +0000)
committerStepan Kasal <kasal@ucw.cz>
Sat, 4 Jun 2005 07:30:05 +0000 (07:30 +0000)
doc/autoconf.texi
lib/autotest/general.m4

index d443819134233304b727aecd7f6e64d27a4de02c..ec12b5bdca85eed51e52d4cddb33c65c430d52a1 100644 (file)
@@ -11513,6 +11513,9 @@ bar
 Either do not depend on such patterns (i.e., use @samp{/^(.*foo|bar)/},
 or use a simple test to reject such AWK@.
 
+@acronym{AIX} version 5.1 limits on the maximal length of regular
+expressions and literal strings in the program to 399.
+
 
 @item @command{cat}
 @c ----------------
index 831abd9fac82af613b3fc190bb973e9d8137c35c..f116ad3fc956606b78858dbc1f1d6a9ea85ca7d3 100644 (file)
@@ -442,10 +442,11 @@ AT_TESTSUITE_NAME test groups:
 
 _ATEOF
   # "  1 42  45 " => "^(1|42|45);".
-  echo "$at_help_all" |
-    awk 'BEGIN {
-          for (n = split("'"$at_groups"'", a); n; n--) selected[[a[n]]] = 1
+  echo "$at_groups$as_nl$at_help_all" |
+    awk 'NR == 1 {
+          for (n = NF; n; n--) selected[[$n]] = 1
           FS = ";"
+          next
         }
         {
           if (selected[[$ 1]]) {