This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Fix unportabilities in dg-extract-results.sh


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]