[Top][All Lists]

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

Re: Emulating "include" in gawk?

From: Davide Brini
Subject: Re: Emulating "include" in gawk?
Date: Fri, 8 Apr 2011 20:21:26 +0100

On Fri, 8 Apr 2011 16:04:43 +0000 (UTC) fork <address@hidden> wrote:

> Is there an idiom or convention for emulating an include statement,
> wherein outside library code is brought into a gawk program?
> I know it isn't posix, but the two features that hold me back from using
> awk all the time are the lack of a library system and the lack of a
> strict option (like "set -u" in shell).  But maybe there are somewhat
> standard workarounds.
> Oh -- I don't want to use another different system that I have to install
> and track like "igawk" or whatever it is.  

Arnold was planning to add an @include keyword to the development version
of awk, but I don't know if that has been added yet. In any case, with awk
it has always been possible to specify multiple -f switches on the command
line, some of which may of course point to library files.


reply via email to

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