diff -uNr perl-5.8.0.orig/Porting/testall.atom perl-5.8.0/Porting/testall.atom --- perl-5.8.0.orig/Porting/testall.atom 2002-06-26 07:05:21.000000000 +1000 +++ perl-5.8.0/Porting/testall.atom 2003-05-10 16:03:52.858535960 +1000 @@ -68,10 +68,10 @@ esac echo $t|sed 's:\.t$::' sw='' - case "`head -1 $t|egrep -e '^#.* -.*T'`" in + case "`head -n 1 $t|egrep -e '^#.* -.*T'`" in *-*T*) sw="$sw -T" ;; esac - case "`head -1 $t|egrep -e '^#.* -.*t'`" in + case "`head -n 1 $t|egrep -e '^#.* -.*t'`" in *-*t*) sw="$sw -t" ;; esac ./perl.pixie -I../lib $sw $t > /dev/null diff -uNr perl-5.8.0.orig/hints/aix.sh perl-5.8.0/hints/aix.sh --- perl-5.8.0.orig/hints/aix.sh 2002-06-13 23:27:03.000000000 +1000 +++ perl-5.8.0/hints/aix.sh 2003-05-10 16:03:52.997514832 +1000 @@ -166,7 +166,7 @@ fi ;; esac - ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -i $cc_type | awk '{print $2}' | head -1` + ccversion=`lslpp -L | grep 'C for AIX Compiler$' | grep -i $cc_type | awk '{print $2}' | head -n 1` ;; esac case "$ccversion" in diff -uNr perl-5.8.0.orig/hints/powerux.sh perl-5.8.0/hints/powerux.sh --- perl-5.8.0.orig/hints/powerux.sh 2002-06-02 03:03:13.000000000 +1000 +++ perl-5.8.0/hints/powerux.sh 2003-05-10 16:03:53.077502672 +1000 @@ -95,7 +95,7 @@ $SRCROOT/UU/ldexptest if [ $? -eq 0 ] then - LDEXPLIB=`fgrep libc.a $SRCROOT/UU/ldexptest.lo | tail -1 | sed -e 's@^[^/]*@@'` + LDEXPLIB=`fgrep libc.a $SRCROOT/UU/ldexptest.lo | tail -n 1 | sed -e 's@^[^/]*@@'` if [ -s "$LDEXPLIB" ] then if [ -f "$LDEXPLIB" ]