delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/11/18:55:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:in-reply-to:references
:message-id; q=dns; s=default; b=D6Ilnhe6tdRLOuZ4Zkbim/OmnCsu+No
EuBdGProAi6MzS/pzEvLUVkGKVfyq6D7JhMzMjx7xB21qsBoUk71+rS11LPIHZH1
HDIMYFR47VjIBAuh36e3sBl0scI3P+Aji/Lk8xEx+GG5B1RUQH4TA1ynzVxOtcr6
dnh3/DWaWnE8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:in-reply-to:references
:message-id; s=default; bh=s7aOraoTT+KoyinZhVegoEc3bpw=; b=ZVtUG
9vkVhnjnIKIoaM+hwRjANLcydE26Y8cvJcZ/2M/Oh0eUvUeKl0SKZq+zkn6o141i
h2fPZyChmkW9D+iMx/a0+BGxr1xG4M/HqDiFXVy0wVUdePNUjE+7Vmt46SrAj2RJ
9ott3R3UCtizqyQWg532JUNG5JGiy5yGnDfxnM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=BAYES_00,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=debt, licensed, licensing, tiny
X-HELO: smtp-out-so.shaw.ca
To: cygwin AT cygwin DOT com
Subject: Re: Where is igawk and why doesn't @include replicate this =?UTF-8?Q?feature=3F?=
MIME-Version: 1.0
Date: Wed, 11 Sep 2019 15:54:33 -0700
From: Kaz Kylheku <920-082-4242 AT kylheku DOT com>
In-Reply-To: <CAC9BAENxZs7ZwSHz1Xq0DAxP0tS6R4fUQ6Rv_tEG_qrCsOZTew@mail.gmail.com>
References: <CAC9BAENxZs7ZwSHz1Xq0DAxP0tS6R4fUQ6Rv_tEG_qrCsOZTew AT mail DOT gmail DOT com>
Message-ID: <f91809f47f6caa1211e93afaaffe77e6@mail.kylheku.com>
X-Sender: 920-082-4242 AT kylheku DOT com
User-Agent: Roundcube Webmail/0.9.2
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8BMtB0d011255

On 2019-09-10 23:54, Troy Kenah wrote:
> Hi All,
> 
> I have a large number of scripts that were using the the igawk script,
> however I have updated my gawk to a newer release that has
> obsoleted/removed the igawk script.

Gawk's build system stopped installing igawk over five years ago:

http://git.savannah.gnu.org/cgit/gawk.git/commit/?id=577ece63770a6c4b5ad00d6998127fb7e85b86b9

> I used to embed @include junk.awk statements to reduce repetitive code 
> but
> this no longer works. These were files were not functions, simply code
> snippets; this is the type of error I am now seeing:

Clearly, the script is not exactly obsolete, since the @include facility 
in
Gawk seems only to work with syntactically complete units, whereas
igawk performs blind textual inclusion.

If I were you, I'd just bring the igawk script into my code base and
continue that way. It's a tiny script that is licensed as
public domain; it doesn't carry much "technical debt" or licensing
debt.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019