Debian Codegraph @

README

raw
1 -- $MawkId: README,v 1.7 2023/02/16 00:19:21 tom Exp $
2 -- vile:txtmode fc=78
3
4 mawk -- an implementation of new/posix awk
5 version 1.3.4
6
7 Generic installation instructions are in file INSTALL.
8 This file gives more specific information.
9
10 Send bug reports, comments, questions, etc. to
11
12 Thomas E. Dickey <[email protected]>
13 https://invisible-island.net/mawk/
14
15 -------------------------------------------------------------------------------
16
17 Portability:
18 -----------
19
20 This program builds/runs on several POSIX-style platforms.
21 It has been recently tested for these:
22
23 AIX (5.1 and 5.3, using cc and gcc)
24 Cygwin (1.5.21 on Windows/XP)
25 FreeBSD (6.0)
26 HPUX (10.20, 11.00, 11.11 and 11.23, using cc and gcc)
27 IRIX64 (using cc and gcc)
28 Linux (several flavors, using gcc and icc)
29 MinGW/MSYS (on Windows/XP)
30 OpenBSD (4.1)
31 Solaris (2.6 to 10, using cc and gcc)
32 Tru64 (4.0D and 5.1, using cc and gcc)
33
34 Options:
35 -------
36
37 The configure script has these application-specific options:
38
39 --disable-echo display "compiling" commands
40
41 Show "compiling foo.c" rather than the full compiler and
42 options. Those are clutter useful only to a developer.
43 Developers focus on compiler warnings anyway.
44
45 --enable-warnings test: turn on gcc compiler warnings
46
47 This turns on the usual gcc compiler warnings needed to
48 do useful development. If you happen to be using the
49 Intel compiler icc, it does the right thing for that.
50
51 --with-builtin-regex use mawk's own regular-expressions engine
52
53 Normally mawk's configure script uses the built-in regular
54 expressions. The choice of default is based on where the
55 greatest lossage occurs. More scripts use gawk's
56 null-character extension than use POSIX brace expressions. If
57 your needs are different, build mawk using an external library.
58
59 Limitations:
60 -----------
61
62 mawk 1.3.3 was developed to correspond with a POSIX draft. POSIX
63 continued, and incorporated some of mawk's extensions as features.
64 The 1.3.4 release fills in the major areas in which POSIX grew past
65 the mawk 1.3.3 implementation.
66
67 mawk's built-in regular expression engine does not yet support brace
68 expressions, e.g.,
69
70 /a{,4}/
71
72 Use an external regular expression library if you require brace
73 expressions. Aside from that, mawk's built-in regular expressions
74 provide POSIX functionality.
75
76 Using an external regular expression library means that mawk cannot
77 match expressions containing the null character. That is a
78 nonstandard feature provided by gawk. Using mawk's built-in regular
79 expressions, there is some support for this feature.
80
81 Aside from supporting nulls, using an external regular expression
82 library is usually advantageous.
83
84 The Cygwin math library has some problems (which are also visible in
85 the gawk port). For instance, its log() function returns Inf
86 (infinity) for log(-8) rather than NaN (not a number) as all of the
87 Unix and similar platforms would do.
88
89 The MSYS package for regular expressions is unusable as an external
90 library for mawk because it generates a runtime error when asked to
91 compile a newline, e.g., "\n". mawk does this during initialization.
92
93 The MinGW/MSYS port does not currently support pipes. There is
94 source-code from the obsolete MS-DOS port which can be reused for this
95 purpose; however that is not the focus of the 1.3.4 release.