On Thu, May 20, 2010 at 20:35, Ralf Wildenhues <[email protected]> wrote: > Hi Paolo, > > * Paolo Bonzini wrote on Wed, May 19, 2010 at 10:53:19AM CEST: >> >> >+The QNX4 implementation fails to count lines with @code{grep -c '$'}, >> >+but works with @code{grep -c '^'}. Another alternative for counting >> >+lines is to use @code{wc -l}. >> >> I think the most portable way to count lines is "sed -n '$='". > > Is there a decided advantage over 'wc -l' such as allowed maximum or so?
No, but wc is not including in the GNU coding standards' list of portable utilities for configure/make. Paolo
