[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tests/mktests.sh portability problem with Solaris 8 "sed"
From: |
Paul Eggert |
Subject: |
tests/mktests.sh portability problem with Solaris 8 "sed" |
Date: |
Sun, 1 Sep 2002 23:48:55 -0700 (PDT) |
tests/mktests.sh runs into a portability problem on Solaris 8, since
Solaris 8 'sed' has a silly line length limit. I know that
tests/mktests.sh is supposed to assume "reasonable" tools, but in this
case the workaround simplifies the code so I don't think that anyone
will object.
2002-09-01 Paul Eggert <address@hidden>
* tests/mktests.sh (ac_exclude_egrep, au_exclude_egrep): Use
ordinary shell concatenation rather than echo+tr+sed command that
runs afoul of a long-line-related sed bug in Solaris 8.
Index: tests/mktests.sh
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/mktests.sh,v
retrieving revision 1.28
retrieving revision 1.29
diff -p -u -r1.28 -r1.29
--- tests/mktests.sh 27 Jun 2002 07:51:16 -0000 1.28
+++ tests/mktests.sh 2 Sep 2002 06:44:27 -0000 1.29
@@ -155,10 +155,7 @@ _AC_'
# ac_exclude_egrep
# ----------------
# Build a single extended regular expression out of filter_macros_list.
-# Sed is used to get rid of the trailing `|' coming from the trailing
-# `\n' from `echo'.
-ac_exclude_egrep=`echo "$exclude_list$ac_exclude_list" | tr '
-' '|' | sed 's/.$//'`
+ac_exclude_egrep=$exclude_list$ac_exclude_list
# au_exclude_list
@@ -183,10 +180,7 @@ au_exclude_list='^AC_LANG_RESTORE$
# au_exclude_egrep
# ----------------
# Build a single extended regular expression out of filter_macros_list.
-# Sed is used to get rid of the trailing `|' coming from the trailing
-# `\n' from `echo'.
-au_exclude_egrep=`echo "$exclude_list$au_exclude_list" | tr '
-' '|' | sed 's/.$//'`
+au_exclude_egrep=$exclude_list$au_exclude_list
# egrep
- tests/mktests.sh portability problem with Solaris 8 "sed",
Paul Eggert <=