2002-02-18 Paul Eggert <eggert@twinsun.com>
authorTom Tromey <tromey@redhat.com>
Tue, 19 Feb 2002 19:11:50 +0000 (19:11 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 19 Feb 2002 19:11:50 +0000 (19:11 +0000)
* lib/depcomp: Don't use "tail +3"; it's not portable to
POSIX 1003.1-2001 hosts.

ChangeLog
lib/depcomp

index a086558..05f8b7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-18  Paul Eggert  <eggert@twinsun.com>
+
+       * lib/depcomp: Don't use "tail +3"; it's not portable to
+       POSIX 1003.1-2001 hosts.
+
 2002-02-18  Jim Meyering  <meyering@lucent.com>
 
        * tests/cond12.test: Use sed 1q, not `head -n 1'.
index d1d45a3..368e3be 100755 (executable)
@@ -324,7 +324,7 @@ makedepend)
   if test "$stat" != 0; then exit $stat; fi
   rm -f "$depfile"
   cat < "$tmpdepfile" > "$depfile"
-  tail +3 "$tmpdepfile" | tr ' ' '
+  sed '1,2d' "$tmpdepfile" | tr ' ' '
 ' | \
 ## Some versions of the HPUX 10.20 sed can't process this invocation
 ## correctly.  Breaking it into two sed invocations is a workaround.