--- ./gcc/testsuite/ada/acats/run_all.sh.orig 2004-04-26 23:15:54.000000000 +0200 +++ ./gcc/testsuite/ada/acats/run_all.sh 2005-03-25 19:24:49.000000000 +0100 @@ -229,7 +229,7 @@ ls ${i}?.adb > ${i}.lst 2> /dev/null ls ${i}*m.adb >> ${i}.lst 2> /dev/null ls ${i}.adb >> ${i}.lst 2> /dev/null - main=`tail -1 ${i}.lst` + main=`tail -n 1 ${i}.lst` binmain=`echo $main | sed -e 's/\(.*\)\..*/\1/g'` echo "BUILD $main" >> $dir/acats.log EXTERNAL_OBJECTS="" --- ./gcc/Makefile.in.orig 2005-02-17 09:47:19.000000000 +0100 +++ ./gcc/Makefile.in 2005-03-25 19:24:31.000000000 +0100 @@ -3898,8 +3898,8 @@ for file in $$dir/*$(objext); do \ case "$@" in \ slowcompare* ) \ - tail +16c ./$$file > tmp-foo1; \ - tail +16c stage$$stage/$$file > tmp-foo2 \ + tail -n +16c ./$$file > tmp-foo1; \ + tail -n +16c stage$$stage/$$file > tmp-foo2 \ && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $$file differs >> .bad_compare) || true; \ ;; \ fastcompare* ) \ --- ./gcc/configure.orig 2005-02-25 19:42:35.000000000 +0100 +++ ./gcc/configure 2005-03-25 19:24:32.000000000 +0100 @@ -13489,7 +13489,7 @@ # and we got the correct data, then succeed. if test x$gcc_cv_objdump != x \ && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ - | tail -3 > conftest.got \ + | tail -n 3 > conftest.got \ && { cmp conftest.lit conftest.got > /dev/null 2>&1 \ || cmp conftest.big conftest.got > /dev/null 2>&1; } then --- ./gcc/configure.ac.orig 2005-02-25 19:42:35.000000000 +0100 +++ ./gcc/configure.ac 2005-03-25 19:24:33.000000000 +0100 @@ -2211,7 +2211,7 @@ # and we got the correct data, then succeed. if test x$gcc_cv_objdump != x \ && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ - | tail -3 > conftest.got \ + | tail -n 3 > conftest.got \ && { cmp conftest.lit conftest.got > /dev/null 2>&1 \ || cmp conftest.big conftest.got > /dev/null 2>&1; } then --- ./config/acx.m4.orig 2004-08-14 00:31:45.000000000 +0200 +++ ./config/acx.m4 2005-03-25 19:25:10.000000000 +0100 @@ -228,7 +228,7 @@ [AC_CACHE_CHECK([how to compare bootstrapped objects], gcc_cv_prog_cmp_skip, [ echo abfoo >t1 echo cdfoo >t2 - gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' + gcc_cv_prog_cmp_skip='tail -n +16c $$f1 > tmp-foo1; tail -n +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' if cmp t1 t2 2 2 > /dev/null 2>&1; then if cmp t1 t2 1 1 > /dev/null 2>&1; then : --- ./contrib/test_summary.orig 2004-08-26 07:51:22.000000000 +0200 +++ ./contrib/test_summary 2005-03-25 19:25:10.628454344 +0100 @@ -106,7 +106,7 @@ srcdir = configflags; sub(/\/configure .*/, "", srcdir); printf "LAST_UPDATED: "; - system("tail -1 " srcdir "/LAST_UPDATED"); + system("tail -n 1 " srcdir "/LAST_UPDATED"); print ""; sub(/^[^ ]*\/configure */, " ", configflags); --- ./libjava/acinclude.m4.orig 2004-09-23 03:14:00.000000000 +0200 +++ ./libjava/acinclude.m4 2005-03-25 19:25:17.422421504 +0100 @@ -17,8 +17,8 @@ AC_MSG_CHECKING(whether 'ld' is at least 2.13) LD_PROG=`$CC --print-prog-name=ld` LD_VERSION=`$LD_PROG --version` -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4` +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2` if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then LD_OK="ok" else --- ./libjava/configure.orig 2005-03-20 00:15:42.000000000 +0100 +++ ./libjava/configure 2005-03-25 19:25:17.592395664 +0100 @@ -5918,8 +5918,8 @@ echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6 LD_PROG=`$CC --print-prog-name=ld` LD_VERSION=`$LD_PROG --version` -LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4` -LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2` +LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4` +LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2` if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then LD_OK="ok" else --- ./libstdc++-v3/acinclude.m4.orig 2005-02-24 19:55:16.000000000 +0100 +++ ./libstdc++-v3/acinclude.m4 2005-03-25 19:25:34.534820024 +0100 @@ -241,7 +241,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. changequote(,) - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` changequote([,]) glibcxx_gnu_ld_version=`echo $ldver | \ --- ./libstdc++-v3/configure.orig 2005-02-24 19:55:17.000000000 +0100 +++ ./libstdc++-v3/configure 2005-03-25 19:25:35.386690520 +0100 @@ -9880,7 +9880,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -55252,7 +55252,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -76923,7 +76923,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -79292,7 +79292,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -81537,7 +81537,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -84550,7 +84550,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -86748,7 +86748,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -88995,7 +88995,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -91603,7 +91603,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ @@ -95660,7 +95660,7 @@ # Start by getting the version number. I think the libtool test already # does some of this, but throws away the result. - ldver=`$LD --version 2>/dev/null | head -1 | \ + ldver=`$LD --version 2>/dev/null | head -n 1 | \ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` glibcxx_gnu_ld_version=`echo $ldver | \ --- ./ChangeLog.orig 2005-03-14 02:37:04.000000000 +0100 +++ ./ChangeLog 2005-03-25 19:25:09.070691160 +0100 @@ -10853,7 +10853,7 @@ to i386-sco3.2v4. Set TARGETS and CFLAGS for i386-sco3.2v4. (all-cygnus, native, build-cygnus): Make $(canonhost)-stamp-3stage-done, not $(host).... - * test-build.mk (stamp-3stage-compared): Use tail +10c for + * test-build.mk (stamp-3stage-compared): Use tail -n +10c for i386-sco3.2v4. Added else true to if command. Mon Dec 28 12:08:56 1992 Ken Raeburn (raeburn@cygnus.com) --- ./configure.orig 2005-02-23 11:12:44.000000000 +0100 +++ ./configure 2005-03-25 19:25:09.490627320 +0100 @@ -2158,7 +2158,7 @@ else echo abfoo >t1 echo cdfoo >t2 - gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' + gcc_cv_prog_cmp_skip='tail -n +16c $$f1 > tmp-foo1; tail -n +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' if cmp t1 t2 2 2 > /dev/null 2>&1; then if cmp t1 t2 1 1 > /dev/null 2>&1; then : --- ./ltcf-c.sh.orig 2004-10-02 18:33:06.000000000 +0200 +++ ./ltcf-c.sh 2005-03-25 19:25:09.537620176 +0100 @@ -153,7 +153,7 @@ # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; --- ./ltcf-gcj.sh.orig 2004-04-27 08:14:30.000000000 +0200 +++ ./ltcf-gcj.sh 2005-03-25 19:25:09.554617592 +0100 @@ -156,7 +156,7 @@ # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def;