- Merged awk upstream that includes a fix for a bug exposed by kmod_syms.mk.
- Provide a build aid for those who already have a buggy awk(1) installed. Approved by: re (kib)
This commit is contained in:
commit
aa0da2e494
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=224776
@ -1014,6 +1014,10 @@ _lex= usr.bin/lex
|
|||||||
_yacc= usr.bin/yacc
|
_yacc= usr.bin/yacc
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if ${BOOTSTRAPPING} >= 900040 && ${BOOTSTRAPPING} < 900041
|
||||||
|
_awk= usr.bin/awk
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${BOOTSTRAPPING} < 700018
|
.if ${BOOTSTRAPPING} < 700018
|
||||||
_gensnmptree= usr.sbin/bsnmpd/gensnmptree
|
_gensnmptree= usr.sbin/bsnmpd/gensnmptree
|
||||||
.endif
|
.endif
|
||||||
@ -1052,6 +1056,7 @@ bootstrap-tools:
|
|||||||
${_groff} \
|
${_groff} \
|
||||||
${_ar} \
|
${_ar} \
|
||||||
${_dtc} \
|
${_dtc} \
|
||||||
|
${_awk} \
|
||||||
usr.bin/lorder \
|
usr.bin/lorder \
|
||||||
usr.bin/makewhatis \
|
usr.bin/makewhatis \
|
||||||
${_mklocale} \
|
${_mklocale} \
|
||||||
|
@ -25,6 +25,10 @@ THIS SOFTWARE.
|
|||||||
This file lists all bug fixes, changes, etc., made since the AWK book
|
This file lists all bug fixes, changes, etc., made since the AWK book
|
||||||
was sent to the printers in August, 1987.
|
was sent to the printers in August, 1987.
|
||||||
|
|
||||||
|
Aug 10, 2011:
|
||||||
|
another fix to avoid core dump with delete(ARGV); again, many thanks
|
||||||
|
to ruslan ermilov.
|
||||||
|
|
||||||
Aug 7, 2011:
|
Aug 7, 2011:
|
||||||
split(s, a, //) now behaves the same as split(s, a, "")
|
split(s, a, //) now behaves the same as split(s, a, "")
|
||||||
|
|
||||||
|
@ -89,8 +89,13 @@ void initgetrec(void)
|
|||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
for (i = 1; i < *ARGC; i++) {
|
for (i = 1; i < *ARGC; i++) {
|
||||||
if (!isclvar(p = getargv(i))) { /* find 1st real filename */
|
p = getargv(i); /* find 1st real filename */
|
||||||
setsval(lookup("FILENAME", symtab), getargv(i));
|
if (p == NULL || *p == '\0') { /* deleted or zapped */
|
||||||
|
argno++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!isclvar(p)) {
|
||||||
|
setsval(lookup("FILENAME", symtab), p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setclvar(p); /* a commandline assignment before filename */
|
setclvar(p); /* a commandline assignment before filename */
|
||||||
|
@ -25,7 +25,7 @@ THIS SOFTWARE.
|
|||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__FBSDID("$FreeBSD$");
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
const char *version = "version 20110807 (FreeBSD)";
|
const char *version = "version 20110810 (FreeBSD)";
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user