diff --git a/FIXES b/FIXES index 1369d5e..1299c18 100644 --- a/FIXES +++ b/FIXES @@ -25,6 +25,11 @@ THIS SOFTWARE. This file lists all bug fixes, changes, etc., made since the AWK book was sent to the printers in August, 1987. +January 24, 2020: + A number of small cleanups from Christos Zoulas. Add the close + on exec flag to files/pipes opened for redirection; courtesy of + Arnold Robbins. + January 19, 2020: If POSIXLY_CORRECT is set in the environment, then sub and gsub use POSIX rules for multiple backslashes. This fixes Issue #66, diff --git a/awk.h b/awk.h index 7b8f564..6865438 100644 --- a/awk.h +++ b/awk.h @@ -60,7 +60,7 @@ extern bool safe; /* false => unsafe, true => safe */ #define RECSIZE (8 * 1024) /* sets limit on records, fields, etc., etc. */ extern int recsize; /* size of current record, orig RECSIZE */ -extern char EMPTY[]; +extern char EMPTY[]; /* this avoid -Wwritable-strings issues */ extern char **FS; extern char **RS; extern char **ORS; diff --git a/main.c b/main.c index e92d17c..efd6d1a 100644 --- a/main.c +++ b/main.c @@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ****************************************************************/ -const char *version = "version 20200119"; +const char *version = "version 20200124"; #define DEBUG #include