[PATCH] Fix `tail' invocation in the Ada testsuite

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Tue Jun 7 07:14:00 GMT 2005


>>  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").

You can use sed -n '$p' for improved portability.

Paolo



More information about the Gcc-patches mailing list