autoconf
[Top][All Lists]
Advanced

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

Re: multiline output variables.


From: Paul Eggert
Subject: Re: multiline output variables.
Date: Mon, 21 Feb 2005 13:10:24 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Dan Manthey <address@hidden> writes:

   ac_eof=
   while grep "^CEOF$ac_eof\$" conf$$subs.sed >/dev/null 2>&1; do
     ac_eof=`expr $ac_eof'0' / 10 + 1`
   done

How about something like this instead?  It makes only one pass over
the data and should be O(N log N) rather than O(N**2):

ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
ac_eof=`expr 0$ac_eof + 1`


> I've received paperwork, and filled it out and given it to my work
> to review and handle as they see fit.

Please let us know when that's done, preferably by resubmitting your
patch to address@hidden  Thanks for your work.




reply via email to

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