[Top][All Lists]

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

Re: config files substitution with awk

From: Paul Eggert
Subject: Re: config files substitution with awk
Date: Tue, 21 Nov 2006 07:31:59 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

> It helps to keep m4 from expanding $0, without needing to think about
> level of m4 quotation currently in place.  AFAIK it's portable.

Yes, I just checked the Unix Version 7 sources, and it seems to have
worked there. 

> I am still pondering abandoning sub completely though, and using substr
> and length to do the replacement manually, due to the \& escaping
> issues.

Sounds like it might be a win.

> Also I wonder how to get around this limitation (autoconf.texi):
> |      Traditional Awk `split' supports only two arguments.

That part of autoconf.texi seems to be incorrect.  Sorry about that.
The Unix V7 grammar for awk says 'split' takes either two or three
arguments.  I don't now remember why I put that statement into the
manual; I should remove it.

reply via email to

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