configure.in port to POSIX 1003.1-2001

Bug #266582 reported by Eggert-users
2
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_VERSION=200112 in the
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_CHECKING(for default fully qualified host name)
 if test -z "$FQDN"
 then
- FQDN=`head -1 conftest.out`
+ FQDN=`sed q conftest.out`
 fi
 AC_MSG_RESULT($FQDN)
 AC_MSG_CHECKING(for default URL host component)
 if test -z "$URL"
 then
- URL=`tail -1 conftest.out`
+ URL=`sed -n '$p' conftest.out`
 fi
 AC_MSG_RESULT($URL)
 rm -f conftest.out conftest.py

[http://sourceforge.net/tracker/index.php?func=detail&aid=527715&group_id=103&atid=300103]

Revision history for this message
Barry Warsaw (barry) wrote :

Thanks, accepted.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.