This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix unportabilities in dg-extract-results.sh
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 07 Jan 2010 20:31:23 +0100
- Subject: Re: PATCH: Fix unportabilities in dg-extract-results.sh
- References: <303e1d291001070951u3ded7dxd61247fbb03b3a63@mail.gmail.com>
David Edelsohn <dje.gcc@gmail.com> writes:
> Did GNU textutils change to allow "tail -2". This now fails for me
> with the error:
>
> tail: `-2' option is obsolete; use `-n 2'
They did at some point in the past, but revised that decision later (at
least in coreutils 7.4, tail -2 works for me) since they met heavy
opposition for that gratuitous incompatibility. Since vendor versions
often don't implement -n 2 at all (like /usr/bin/tail in Solaris 2),
falling back to the more whitespread -2 seems like the better option.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University