configure.in port to POSIX 1003.1-2001
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This is a patch to bug #527712.
2002-03-09 Paul Eggert <email address hidden>
* configure.in (FQDN, URL): Don't use "head -1" or "tail
-1";
they aren't portable to POSIX 1003.1-2001
implementations, like
GNU textutils 2.0.21 with _POSIX2_
environment.
=======
RCS file: configure.in,v
retrieving revision 2.0.8.0
retrieving revision 2.0.8.1
diff -pu -r2.0.8.0 -r2.0.8.1
--- configure.in 2000/09/22 16:56:44 2.0.8.0
+++ configure.in 2002/03/09 04:42:31 2.0.8.1
@@ -425,13 +425,13 @@ changequote([, ])
AC_MSG_
if test -z "$FQDN"
then
- FQDN=`head -1 conftest.out`
+ FQDN=`sed q conftest.out`
fi
AC_MSG_
AC_MSG_
if test -z "$URL"
then
- URL=`tail -1 conftest.out`
+ URL=`sed -n '$p' conftest.out`
fi
AC_MSG_
rm -f conftest.out conftest.py
[http://
Thanks, accepted.