ThomasDickey / original-mawk

bug-reports for mawk (originally on GoogleCode)
http://invisible-island.net/mawk/mawk.html
18 stars 2 forks source link

include-facility #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Jan Psota suggests:

Please take a look at http://sourceforge.net/projects/runawk/
I think, that incorporating #use into mawk would be simple and
elegant. Or section like BEGIN and END, but called USE or INCLUDE
- it would look more awk style.
USE { asort; join }                # from /usr/share/awk
USE { "/home/tom/asort.awk" }        # "" for absolute paths

Original issue reported on code.google.com by dic...@his.com on 9 Dec 2012 at 8:02

GoogleCodeExporter commented 9 years ago
gawk has the analogous AWKPATH for finding scripts specified via -f options.
BWK has no analogous extensions.

Original comment by dic...@his.com on 9 Dec 2012 at 8:20