| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
| X-Recipient: | geda-user AT delorie DOT com |
| Date: | Mon, 16 Mar 2015 18:25:35 +0100 (CET) |
| X-X-Sender: | igor2 AT igor2priv |
| To: | geda-user AT delorie DOT com |
| X-Debug: | to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" |
| From: | gedau AT igor2 DOT repo DOT hu |
| Subject: | Re: [geda-user] gawk vs mawk |
| In-Reply-To: | <201503161709.t2GH9orC019375@envy.delorie.com> |
| Message-ID: | <alpine.DEB.2.00.1503161823430.25799@igor2priv> |
| References: | <201503161709 DOT t2GH9orC019375 AT envy DOT delorie DOT com> |
| User-Agent: | Alpine 2.00 (DEB 1167 2008-08-23) |
| MIME-Version: | 1.0 |
| Reply-To: | geda-user AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | geda-user AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
On Mon, 16 Mar 2015, DJ Delorie wrote: > > In PCB's build, we call "some variant of awk" to build the library. > However, we use a GNU extension (note the third argument): > > match (comment, /(.*)\[(.*)\]/, fp); > > Is it intentional that we require GNU awk (in which case > configure/docs need to be changed) or not (in which case, the awk > script needs to be changed) ? > In case we want to go for portable (POSIX?) awk, the above can be rewritten using multiple match() calls and RSTART/RLENGTH. Regards, Igor2
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |