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 `tail' invocation in the Ada testsuite


On Mon, 6 Jun 2005, Maciej W. Rozycki wrote:

>  The Ada testsuite invokes `tail' with "-1", which is not an option 
> allowed by the current revision of the POSIX standard and is therefore 
> expected to fail on systems that comply to it.  For example this is the 
> case with the `tail' implementation included in GNU coreutils 5.2.1 if 
> built on a glibc 2.3.x system (for older configurations you can force 
> POSIX compliance by setting the "_POSIX2_VERSION" environment variable to 
> "200112").

Please read (a) the discussion in bug 14251 and the various other past 
discussions of this issue on the lists, (b) 
<http://www.opengroup.org/austin/interps/uploads/40/6807/AI-027.txt> which 
makes clear that "tail -1" is a permitted extension although a change to 
the standard will be needed to add options beginning with "+" as 
extensions where they were traditional usage.  GNU coreutils is broken in 
its default behavior.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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