1 Mawk -- an implementation of new/posix awk
4 Installation instructions in file INSTALL.
6 Bug reports, comments, questions, etc. to
7 Mike Brennan, brennan@whidbey.com.
8 ftp site: ftp.whidbey.net in ~/pub/brennan
10 Version 1.3 implements a new internal design for arrays. See file
13 Version 1.2.2 is best for MsDOS
14 ---------------------------------------------------------
16 Changes from version 1.1.4 to 1.2:
18 1) Limit on code size set by #define in sizes.h is gone.
20 2) A number of obscure bugs have been fixed such as,
21 you can now make a recursive function call inside a for( i in A) loop.
22 Function calls with array parameters in loop expressions sometimes
23 generated erroneous internal code.
25 See RCS log comments in code for details.
27 Reported bugs are fixed.
32 -We file : reads commands from file and next argument, regardless
33 of form, is ARGV[1]. Useful for passing -v , -f etc to
34 an awk program started with #!/.../mawk
37 #!/usr/local/bin/mawk -We
39 myprogram -v works, while
41 #!/usr/local/bin/mawk -f
43 myprogram -v gives error message
44 mawk: option -v lacks argument
46 This is really a posix bozo. Posix says you end arguments with
47 -- , but this doesn't work with the #! convention.
51 -W interactive : forces stdout to be unbuffered and stdin to
52 be line buffered. Records from stdin are lines regardless of
53 the value of RS. Useful for interaction with a mawk on a pipe.
55 -W dump, -Wd : disassembles internal code to stdout (used to be
58 4) FS = "" causes each record to be broken into characters and placed
61 same with split(x,A,"") and split(x,A,//)
64 5) print > "/dev/stdout" writes to stdout, exactly the same as
67 This is useful for passing stdout to
69 function my_special_output_routine(s, file)
71 # do something fancy with s
76 6) New built-in function fflush() -- copied from the lastest att awk.
78 fflush() : flushes stdout and returns 0
79 fflush(file) flushes file and returns 0; if file was not an
80 open output file then returns -1.
82 7) delete A ; -- removes all elements of the array A
86 for( i in A) delete A[i]
88 8) mawk errors such as compilation failure, file open failure, etc.
89 now exit 2 which reserves exit 1 for the user.
91 9) No program now silently exits 0, prior behavior was to exit 2 with