This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix `tail' invocation in the Ada testsuite
- From: Zack Weinberg <zack at codesourcery dot com>
- To: "Maciej W. Rozycki" <macro at linux-mips dot org>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 06 Jun 2005 13:42:37 -0700
- Subject: Re: [PATCH] Fix `tail' invocation in the Ada testsuite
- References: <Pine.LNX.4.61L.email@example.com>
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.
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.)