aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/ChangeLog5
-rw-r--r--doc/gawk.12
-rw-r--r--extension/ChangeLog6
-rw-r--r--extension/configh.in3
-rw-r--r--test/ChangeLog5
-rw-r--r--test/id.awk3
-rw-r--r--test/id.ok116
7 files changed, 80 insertions, 60 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index fe5cb244..3841a037 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-26 Arnold D. Robbins <arnold@skeeve.com>
+
+ * gawk.1: Put commas outside quoting in regexps to avoid
+ confusion. Thanks to Mike Frysinger <vapier@gentoo.org>.
+
2015-10-16 Arnold D. Robbins <arnold@skeeve.com>
* awkcard.in: Fix tbl complaint.
diff --git a/doc/gawk.1 b/doc/gawk.1
index f00bb1c9..ba957bd1 100644
--- a/doc/gawk.1
+++ b/doc/gawk.1
@@ -1972,7 +1972,7 @@ and
For example, the name
.B e
might be used to represent all of
-\*(lqe,\*(rq \*(lqe\h'-\w:e:u'\',\*(rq and \*(lqe\h'-\w:e:u'\`.\*(rq
+\*(lqe\*(rq, \*(lqe\h'-\w:e:u'\'\*(rq, and \*(lqe\h'-\w:e:u'\`\*(rq.
In this case,
.B [[=e=]]
is a regular expression
diff --git a/extension/ChangeLog b/extension/ChangeLog
index 0200ecc4..302b46c9 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-26 Arnold D. Robbins <arnold@skeeve.com>
+
+ * config.h.in: Turn on _DEFAULT_SOURCE for very recent
+ GLIBC. Thanks to Michal Jaegermann <michal.jnn@gmail.com>
+ for the report.
+
2015-08-28 Daniel Richard G. <skunk@iSKUNK.ORG>
* rwarray.c: Removed z/OS-specific code that is no longer needed due
diff --git a/extension/configh.in b/extension/configh.in
index d3f7361e..a52f609d 100644
--- a/extension/configh.in
+++ b/extension/configh.in
@@ -147,6 +147,9 @@
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
+#if defined _GNU_SOURCE && !defined _DEFAULT_SOURCE
+# define _DEFAULT_SOURCE
+#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
diff --git a/test/ChangeLog b/test/ChangeLog
index 6312e21d..1028be70 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-26 Arnold D. Robbins <arnold@skeeve.com>
+
+ * id.awk: Sort the output. Helps on z/OS.
+ * id.ok: Adjust.
+
2015-10-11 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (readbuf): New test.
diff --git a/test/id.awk b/test/id.awk
index 2a35e42c..9c2ae2d4 100644
--- a/test/id.awk
+++ b/test/id.awk
@@ -7,5 +7,6 @@ BEGIN {
an_array[1] = 1
for (i in PROCINFO["identifiers"])
- printf("%s -> %s\n", i, PROCINFO["identifiers"][i])
+ printf("%s -> %s\n", i, PROCINFO["identifiers"][i]) | "sort"
+ close("sort")
}
diff --git a/test/id.ok b/test/id.ok
index ef68c426..7454a4fc 100644
--- a/test/id.ok
+++ b/test/id.ok
@@ -1,75 +1,75 @@
-OFS -> scalar
-rand -> builtin
ARGC -> scalar
-dcgettext -> builtin
-gsub -> builtin
-PREC -> scalar
-match -> builtin
ARGIND -> scalar
-int -> builtin
-ERRNO -> scalar
ARGV -> array
-log -> builtin
-sprintf -> builtin
+BINMODE -> scalar
+CONVFMT -> scalar
+ENVIRON -> array
+ERRNO -> scalar
+FIELDWIDTHS -> scalar
+FILENAME -> scalar
+FNR -> scalar
+FPAT -> scalar
+FS -> scalar
+FUNCTAB -> array
+IGNORECASE -> scalar
+LINT -> scalar
+NF -> scalar
+NR -> scalar
+OFMT -> scalar
+OFS -> scalar
+ORS -> scalar
+PREC -> scalar
+PROCINFO -> array
+RLENGTH -> scalar
ROUNDMODE -> scalar
-strftime -> builtin
-systime -> builtin
-length -> builtin
+RS -> scalar
+RSTART -> scalar
+RT -> scalar
+SUBSEP -> scalar
+SYMTAB -> array
+TEXTDOMAIN -> scalar
+an_array -> untyped
and -> builtin
-srand -> builtin
-FNR -> scalar
asort -> builtin
+asorti -> builtin
atan2 -> builtin
-cos -> builtin
-TEXTDOMAIN -> scalar
-ORS -> scalar
-split -> builtin
-RSTART -> scalar
-compl -> builtin
bindtextdomain -> builtin
+close -> builtin
+compl -> builtin
+cos -> builtin
+dcgettext -> builtin
+dcngettext -> builtin
exp -> builtin
-or -> builtin
fflush -> builtin
+function1 -> user
gensub -> builtin
-LINT -> scalar
-dcngettext -> builtin
+gsub -> builtin
+i -> untyped
index -> builtin
-IGNORECASE -> scalar
-system -> builtin
-CONVFMT -> scalar
-sqrt -> builtin
-rshift -> builtin
-tolower -> builtin
-FS -> scalar
-BINMODE -> scalar
-sin -> builtin
-asorti -> builtin
-FIELDWIDTHS -> scalar
-typeof -> builtin
-function1 -> user
-FILENAME -> scalar
-close -> builtin
-mktime -> builtin
-FUNCTAB -> array
-NF -> scalar
+int -> builtin
+intdiv -> builtin
isarray -> builtin
-an_array -> untyped
+length -> builtin
+log -> builtin
+lshift -> builtin
+match -> builtin
+mktime -> builtin
+or -> builtin
patsplit -> builtin
-NR -> scalar
-SUBSEP -> scalar
-i -> untyped
+rand -> builtin
+rshift -> builtin
+sin -> builtin
+split -> builtin
+sprintf -> builtin
+sqrt -> builtin
+srand -> builtin
+strftime -> builtin
+strtonum -> builtin
sub -> builtin
-OFMT -> scalar
-RLENGTH -> scalar
substr -> builtin
-intdiv -> builtin
-FPAT -> scalar
-RS -> scalar
-xor -> builtin
-RT -> scalar
-PROCINFO -> array
-lshift -> builtin
-SYMTAB -> array
-strtonum -> builtin
+system -> builtin
+systime -> builtin
+tolower -> builtin
toupper -> builtin
-ENVIRON -> array
+typeof -> builtin
+xor -> builtin