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


Maciej W. Rozycki wrote:
> Hello,
> 
>  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.

The POSIX standard is wrong, and systems *must not* obey it in this
regard.  We have been around on this several times.  GNU coreutils is
buggy; complain to them.

>  Here is an obvious fix.

This is not a fix.  GCC supports operating systems whose "tail"
executables do not -- and never will -- support "-n 1".  (Many big-iron
Unix vendors - e.g. HP, Sun - have frozen their default shell utilities
in a pre-SUSv2, never mind POSIX.1-2001, state.  More up-to-date
utilities are generally hiding *somewhere* on the system, but we cannot
assume they are in the user's PATH.  No, we don't want patches to locate
them, either.  Get coreutils to fix their bug already.)

zw


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