| 1 |
-- $MawkId: TODO,v 1.8 2020/07/19 15:02:06 tom Exp $ |
| 2 |
mawk was implemented to conform with POSIX 1003.2-1992 |
| 3 |
|
| 4 |
According to |
| 5 |
|
| 6 |
http://www.opengroup.org/austin/papers/posix_faq.html |
| 7 |
|
| 8 |
that was merged into POSIX-1003.1, and the latest relevant text of that is |
| 9 |
documented here: |
| 10 |
|
| 11 |
http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html |
| 12 |
|
| 13 |
The extended regular expressions are documented here: |
| 14 |
|
| 15 |
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html |
| 16 |
|
| 17 |
Sections below refer to the awk.html sections. |
| 18 |
|
| 19 |
OPTIONS |
| 20 |
mawk complies here. |
| 21 |
|
| 22 |
OPERANDS |
| 23 |
mawk complies here. |
| 24 |
|
| 25 |
STDIN |
| 26 |
mawk complies here. |
| 27 |
|
| 28 |
INPUT FILES |
| 29 |
mawk complies here. |
| 30 |
|
| 31 |
ENVIRONMENT VARIABLES |
| 32 |
mawk ignores LC_COLLATE, LC_MESSAGES, LC_NUMERIC and NLSPATH |
| 33 |
|
| 34 |
mawk implements extensions |
| 35 |
|
| 36 |
MAWKBINMODE which gawk does as BINMODE |
| 37 |
|
| 38 |
MAWK_LONG_OPTIONS to ignore long options such as gawk's. Values |
| 39 |
are: error, warn, ignore (only the first character is checked). |
| 40 |
|
| 41 |
WHINY_USERS feature from gawk which makes iteration over array |
| 42 |
in sorted order. |
| 43 |
|
| 44 |
EXTENDED DESCRIPTION |
| 45 |
strings are converted to double using strtod(), which could be |
| 46 |
implemented using atof(). |
| 47 |
|
| 48 |
ENVIRON and CONVFMT are in the standard now, not extensions. |
| 49 |
|
| 50 |
>Expressions in awk |
| 51 |
mawk complies |
| 52 |
|
| 53 |
>Variables and Special Variables |
| 54 |
mawk complies |
| 55 |
|
| 56 |
>Regular Expressions |
| 57 |
mawk's built-in regular expressions supports brace expressions |
| 58 |
(used to denote minimum/maximum number of matches). |
| 59 |
|
| 60 |
mawk can be built with an external regular-expression library. |
| 61 |
However, POSIX regular expressions do not support matches of |
| 62 |
NUL-bytes. mawk's internal regular expressions support NULs. |
| 63 |
|
| 64 |
>Expression Patterns |
| 65 |
ok |
| 66 |
|
| 67 |
>Pattern Ranges |
| 68 |
ok |
| 69 |
|
| 70 |
>Actions |
| 71 |
delete is now part of POSIX-1003.1 |
| 72 |
|
| 73 |
>Output Statements |
| 74 |
mawk does not use popen/pclose for opening/closing a pipe. |
| 75 |
|
| 76 |
>Arithmetic Functions |
| 77 |
ok |
| 78 |
|
| 79 |
>String Functions |
| 80 |
toupper and tolower are now part of POSIX-1003.1 |
| 81 |
|
| 82 |
>Input/Output and General Functions |
| 83 |
ok |
| 84 |
|
| 85 |
>User-Defined Functions |
| 86 |
ok |