autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Document the grep workaround.


From: Paolo Bonzini
Subject: Re: [PATCH] Document the grep workaround.
Date: Thu, 20 May 2010 22:34:12 +0200

On Thu, May 20, 2010 at 20:35, Ralf Wildenhues <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]