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] tail -1 usage


On Sun, 29 Jun 2003, Olaf Hering wrote:
> The new gnu coreutils do not allow tail/head -1 anymore.
>
> There are a few more places, maybe it must be fixed/changed elsewhere.
>
>  find -type f | grep -vw CVS | xargs grep -E '(tail|head)[[:blank:]]+-1'

If they really dropped support for that, I'd consider this a (silly)
bug, considering all the breakage it will cause to tons of scripts out
there and file a bug report with the maintainers.

Would you mind doing that, Cc:ing me?

>         * contrib/test_summary: use tail -n 1

Unfortunately, this would break sparc-sun-solaris2.9's /usr/bin/tail
and probably quite a couple of other systems. :-(

Gerald
-- 
Gerald "Jerry"   pfeifer@dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/


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