Mark Hessling
05/23/2010 6:46 PM
post55416
|
> On Thu, May 20, 2010 at 05:23:29PM -0400, Mark Hessling wrote:
> > No the shell interpreting the $ is not the problem; the $ is in single
> quotes so the shell does not interpret the $.
> > It is the same as: grep -c \$ (without quotes).
> >
> > Your example doesn't work on QNX4 bash or ksh, nor does it work on Linux.
> >
> > The autoconf people have accepted a workaround to bypass this bug, but the
> bug still exists.
> >
> > What is the procedure for reporting bugs to QNX?
> >
>
> This works in QNX6 so please make sure the autoconf workaround only
> affects QNX4.
>
> Regards,
>
> -seanb
The code that causes the problem in autoconf is used to count the number of lines in stdin. At the moment they use:
grep -c '$'
to count the number of "end of lines"
The workaround is to use:
grep -c '^'
to count the number of "start of lines"
which AFAIK will be changed for every platform.
Cheers, Mark
|
|
|