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:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-type; q=dns; s=default; b=iIuOy Fv+PUeR83JbK4jrvHQN0lamvFciOPk+pEdCc6YuNzZr/9qjOyefYRINGwgN5JlCN UBpXeYDycGts804tRZFeQ+FtinJghjAF0GDrEXzzhHUU8IxYmuVelj8no46Gh+VD nTn0zWhXaJ1hmMdy2Ko3FOPzodfz47wZoZ+GXs= 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:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-type; s=default; bh=z/+Fyl45E5h KkiNZAOZo7P1ev78=; b=yVQ+uN9lN3BxDB1V5WqRIy4zlR5kkNfROTwOJY3Z9zD 7k6uhhT0AmZlILqkjIEF05GIsN/53ysrEfPwz38xpPKJRNxPoXhLRIl0K+Ps/Elv fR38jDQoUNG5LkJZjWnY+OXB/e9QtqWPZlkdox5pJp4KFJAB4trYMYYWegwZNDtM = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=wave, HX-Languages-Length:1095, HX-Spam-Relays-External:ESMTPA X-HELO: mx009.vodafonemail.xion.oxcs.net From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: Where is igawk and why doesn't @include replicate this feature? In-Reply-To: (Troy Kenah's message of "Wed, 11 Sep 2019 16:54:49 +1000") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Date: Wed, 11 Sep 2019 19:50:05 +0200 Message-ID: <877e6ek9iq.fsf@Rainer.invalid> MIME-Version: 1.0 Content-Type: text/plain Troy Kenah writes: > 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. The semantics for @include are different between igawk and "native" gawk @include (since 4.x). The newer gawk versions treat @include statements like they would treat the --include option on the command line. In particular that means that each include is processed only once and you should (only) use it to define functions. The igawk script was removed from gawk in this commit http://git.savannah.gnu.org/cgit/gawk.git/commit/?id=577ece63770a6c4b5ad00d6998127fb7e85b86b9 but left in the manual, so you can resurrect it either from there or from Git: http://git.savannah.gnu.org/cgit/gawk.git/plain/awklib/eg/prog/igawk.sh Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- 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