Re: multiline output variables.

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

 



Dan Manthey <dan_manthey@xxxxxxxxxxx> 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 autoconf-patches@xxxxxxxx  Thanks for your work.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux