History log of /freebsd-current/contrib/one-true-awk/main.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 1023317a 04-May-2024 Warner Losh <imp@FreeBSD.org>

ota: Merge one true awk 20240422 (a3b68e649d2d)

Apr 22, 2024:
fixed regex engine gototab reallocation issue that was
introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
Fixed a scan bug in split in the case the separator is a single
character. thanks to Oguz Ismail for spotting the issue.

Mar 10, 2024:
fixed use-after-free bug in fnematch due to adjbuf invalidating
the pointers to buf. thanks to github user caffe3 for spotting
the issue and providing a fix, and to Miguel Pineiro Jr.
for the alternative fix.
MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
thanks to Miguel Pineiro Jr.

Sponsored by: Netflix


# f32a6403 28-Feb-2024 Warner Losh <imp@FreeBSD.org>

Merge one true awk from 2024-01-22 for the Awk Second Edition support

This brings in Unicode support, CSV support and a number of bug fixes.
They are described in _The AWK Programming Language_, Second Edition, by
Al Aho, Brian Kernighan, and Peter Weinberger (Addison-Wesley, 2024,
ISBN-13 978-0138269722, ISBN-10 0138269726).

Sponsored by: Netflix


# b2376a5f 15-Nov-2023 Warner Losh <imp@FreeBSD.org>

Revert "awk: Merge upstream 2nd Edition Awk Book"

The pre-push testing I did turned out to be testing the old version with
the old testsuite (for reasons I don't understnad). There's issues with
the new version, the new test in the suite or (likely) both. Revert
until they can be chased down.

This should also fix the github CI that's gone red since this commit.

This reverts commit 3fd60a6b73ac01a72df89751f173970fae4cae73, reversing
changes made to 194df014feebd8b169b41ecd75ae73d63a792d6b.

Sponsored by: Netflix

# 3fd60a6b 02-Nov-2023 Warner Losh <imp@FreeBSD.org>

awk: Merge upstream 2nd Edition Awk Book

Merge in the November 2nd, 2023 version of one true awk.

This brings in Unicode support, CSV support and a number of bug fixes.

Sponsored by: Netflix
Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D42447


# 23f24377 01-Aug-2021 Warner Losh <imp@FreeBSD.org>

awk: Merge 20210729 from One True Awk upstream (0592de4a)

July 27, 2021:
As per IEEE Std 1003.1-2008, -F "str" is now consistent with
-v FS="str" when str is null. Thanks to Warner Losh.

July 24, 2021:
Fix readrec's definition of a record. This fixes an issue
with NetBSD's RS regular expression support that can cause
an infinite read loop. Thanks to Miguel Pineiro Jr.

Fix regular expression RS ^-anchoring. RS ^-anchoring needs to
know if it is reading the first record of a file. This change
restores a missing line that was overlooked when porting NetBSD's
RS regex functionality. Thanks to Miguel Pineiro Jr.

Fix size computation in replace_repeat() for special case
REPEAT_WITH_Q. Thanks to Todd C. Miller.

Also, included the tests from upstream, though they aren't yet connected
to the tree.

Sponsored by: Netflix


# 4e52f5db 30-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Flag -Ft as deprecated behavior

Upstream is poised to deprecate the -Ft wart in one true awk. None of
the other awks do this, and the gawk maintainer says that he's had no
requests for it in gawk in 30 years maintaining it. github can find a
few instances of it in the wild. As such, warn that it's deprecated and
will go away in the future.

MFC After: 3 days
Sponsored by: Netflix

# a2e3e118 19-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Make -F '' and -v FS="" behave the same

IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v
FS=str. For a null string, this was not the case. Since awk(1) documents
that a null string for FS has a specific behavior, make -F '' behave
consistently with -v FS="".

PR: 241441
Upstream issue: https://github.com/onetrueawk/awk/issues/127
Upstream pull request: https://github.com/onetrueawk/awk/pull/128
MFC After: 2 weeks
Sponsored by: Netflix

# 5ab82b00 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Remove last markings we have on awk

We normally don't add $FreeBSD$ to contrib software. However, these
changes date back to the CVS era of source code management and have been
overlooked. Now that all these files are back to the same as the
upstream bsd-features branch, remove the FreeBSD specific changes, which
are now just $FreeBSD$ and the (FreeBSD) in the version string.

MFC After: 2 weeks
Sponsored by: Netflix

# 628bd30a 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: revert to upstream behavior for ranges for gawk compatibility

In 2005, FreeBSD changed one-true-awk to honor the locale's collating
order. This was billed as a temporary patch. It was also compatible with
the then-current behavior of gawk. That temporary patch has lasted 16
years now.

However, IEEE Std 1003.1-2008 changed the behaivor of ranges in regular
expressions outside of the "C" and "POSIX" locales to be undefined.

Starting in 2011, gawk 4.0 stopped using the locale for the range
regular expressions and used the traditional behavior only. The
maintainer had grown weary of answering why '[A-Z]' would sometimes
match lower-case expressions. The details about are explained here:
https://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

To restore compatibility with other implementaitons of awk, revert this
patch. FreeBSD is the odd-system out. It also has the nice side effect
of eliminating the last of our differences with upstream one-true-awk.

Reviewed by: cy, rgrimes
MFC After: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31114

# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# a4b2ac79 19-Sep-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks

# 0840e960 03-Jan-2013 Xin LI <delphij@FreeBSD.org>

MFV: one-true-awk 20121220.

MFC after: 1 month


# aa0da2e4 11-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

- 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)


# d86a0988 08-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 7-Aug-2011 release.

Approved by: re (kib)


# b40501fb 06-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 6-May-2011 release (upstreamed some of our changes).


# 1b11b783 03-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 1-May-2011 release (except for the isblank change).


# d98dd8e5 10-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Apply patches directly to sources. Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
bracket expressions, until a more complete fix (like handing
BREs) is ready.

- Don't require a space between -[fv] and its argument.

# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# c263f9bf 16-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 24-Apr-2005 release.

# 62ebc626 08-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 7-Feb-2004 release.

# 2e454f23 05-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixes from 31-Jul-2003; make it 8-bit clean.

Forgotten by: ru (for far too long)

# 88b8d487 30-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 29-Jul-2003 release.

# fc6b1dfe 17-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 14-March-2003 release.

# 72969a22 18-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 13-Dec-2002 release.

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 146a1e50 16-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 2002-02-10 release.

# 007c6572 19-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Vendor import of bwk's 2002-02-18 release. Most significant update is the
inclusion of my character class patch.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# f32a6403 28-Feb-2024 Warner Losh <imp@FreeBSD.org>

Merge one true awk from 2024-01-22 for the Awk Second Edition support

This brings in Unicode support, CSV support and a number of bug fixes.
They are described in _The AWK Programming Language_, Second Edition, by
Al Aho, Brian Kernighan, and Peter Weinberger (Addison-Wesley, 2024,
ISBN-13 978-0138269722, ISBN-10 0138269726).

Sponsored by: Netflix


# b2376a5f 15-Nov-2023 Warner Losh <imp@FreeBSD.org>

Revert "awk: Merge upstream 2nd Edition Awk Book"

The pre-push testing I did turned out to be testing the old version with
the old testsuite (for reasons I don't understnad). There's issues with
the new version, the new test in the suite or (likely) both. Revert
until they can be chased down.

This should also fix the github CI that's gone red since this commit.

This reverts commit 3fd60a6b73ac01a72df89751f173970fae4cae73, reversing
changes made to 194df014feebd8b169b41ecd75ae73d63a792d6b.

Sponsored by: Netflix

# 3fd60a6b 02-Nov-2023 Warner Losh <imp@FreeBSD.org>

awk: Merge upstream 2nd Edition Awk Book

Merge in the November 2nd, 2023 version of one true awk.

This brings in Unicode support, CSV support and a number of bug fixes.

Sponsored by: Netflix
Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D42447


# 23f24377 01-Aug-2021 Warner Losh <imp@FreeBSD.org>

awk: Merge 20210729 from One True Awk upstream (0592de4a)

July 27, 2021:
As per IEEE Std 1003.1-2008, -F "str" is now consistent with
-v FS="str" when str is null. Thanks to Warner Losh.

July 24, 2021:
Fix readrec's definition of a record. This fixes an issue
with NetBSD's RS regular expression support that can cause
an infinite read loop. Thanks to Miguel Pineiro Jr.

Fix regular expression RS ^-anchoring. RS ^-anchoring needs to
know if it is reading the first record of a file. This change
restores a missing line that was overlooked when porting NetBSD's
RS regex functionality. Thanks to Miguel Pineiro Jr.

Fix size computation in replace_repeat() for special case
REPEAT_WITH_Q. Thanks to Todd C. Miller.

Also, included the tests from upstream, though they aren't yet connected
to the tree.

Sponsored by: Netflix


# 4e52f5db 30-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Flag -Ft as deprecated behavior

Upstream is poised to deprecate the -Ft wart in one true awk. None of
the other awks do this, and the gawk maintainer says that he's had no
requests for it in gawk in 30 years maintaining it. github can find a
few instances of it in the wild. As such, warn that it's deprecated and
will go away in the future.

MFC After: 3 days
Sponsored by: Netflix

# a2e3e118 19-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Make -F '' and -v FS="" behave the same

IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v
FS=str. For a null string, this was not the case. Since awk(1) documents
that a null string for FS has a specific behavior, make -F '' behave
consistently with -v FS="".

PR: 241441
Upstream issue: https://github.com/onetrueawk/awk/issues/127
Upstream pull request: https://github.com/onetrueawk/awk/pull/128
MFC After: 2 weeks
Sponsored by: Netflix

# 5ab82b00 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Remove last markings we have on awk

We normally don't add $FreeBSD$ to contrib software. However, these
changes date back to the CVS era of source code management and have been
overlooked. Now that all these files are back to the same as the
upstream bsd-features branch, remove the FreeBSD specific changes, which
are now just $FreeBSD$ and the (FreeBSD) in the version string.

MFC After: 2 weeks
Sponsored by: Netflix

# 628bd30a 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: revert to upstream behavior for ranges for gawk compatibility

In 2005, FreeBSD changed one-true-awk to honor the locale's collating
order. This was billed as a temporary patch. It was also compatible with
the then-current behavior of gawk. That temporary patch has lasted 16
years now.

However, IEEE Std 1003.1-2008 changed the behaivor of ranges in regular
expressions outside of the "C" and "POSIX" locales to be undefined.

Starting in 2011, gawk 4.0 stopped using the locale for the range
regular expressions and used the traditional behavior only. The
maintainer had grown weary of answering why '[A-Z]' would sometimes
match lower-case expressions. The details about are explained here:
https://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

To restore compatibility with other implementaitons of awk, revert this
patch. FreeBSD is the odd-system out. It also has the nice side effect
of eliminating the last of our differences with upstream one-true-awk.

Reviewed by: cy, rgrimes
MFC After: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31114

# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# a4b2ac79 19-Sep-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks

# 0840e960 03-Jan-2013 Xin LI <delphij@FreeBSD.org>

MFV: one-true-awk 20121220.

MFC after: 1 month


# aa0da2e4 11-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

- 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)


# d86a0988 08-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 7-Aug-2011 release.

Approved by: re (kib)


# b40501fb 06-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 6-May-2011 release (upstreamed some of our changes).


# 1b11b783 03-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 1-May-2011 release (except for the isblank change).


# d98dd8e5 10-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Apply patches directly to sources. Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
bracket expressions, until a more complete fix (like handing
BREs) is ready.

- Don't require a space between -[fv] and its argument.

# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# c263f9bf 16-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 24-Apr-2005 release.

# 62ebc626 08-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 7-Feb-2004 release.

# 2e454f23 05-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixes from 31-Jul-2003; make it 8-bit clean.

Forgotten by: ru (for far too long)

# 88b8d487 30-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 29-Jul-2003 release.

# fc6b1dfe 17-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 14-March-2003 release.

# 72969a22 18-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 13-Dec-2002 release.

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 146a1e50 16-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 2002-02-10 release.

# 007c6572 19-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Vendor import of bwk's 2002-02-18 release. Most significant update is the
inclusion of my character class patch.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# b2376a5f 15-Nov-2023 Warner Losh <imp@FreeBSD.org>

Revert "awk: Merge upstream 2nd Edition Awk Book"

The pre-push testing I did turned out to be testing the old version with
the old testsuite (for reasons I don't understnad). There's issues with
the new version, the new test in the suite or (likely) both. Revert
until they can be chased down.

This should also fix the github CI that's gone red since this commit.

This reverts commit 3fd60a6b73ac01a72df89751f173970fae4cae73, reversing
changes made to 194df014feebd8b169b41ecd75ae73d63a792d6b.

Sponsored by: Netflix


# 3fd60a6b 02-Nov-2023 Warner Losh <imp@FreeBSD.org>

awk: Merge upstream 2nd Edition Awk Book

Merge in the November 2nd, 2023 version of one true awk.

This brings in Unicode support, CSV support and a number of bug fixes.

Sponsored by: Netflix
Reviewed by: delphij
Differential Revision: https://reviews.freebsd.org/D42447


# 23f24377 01-Aug-2021 Warner Losh <imp@FreeBSD.org>

awk: Merge 20210729 from One True Awk upstream (0592de4a)

July 27, 2021:
As per IEEE Std 1003.1-2008, -F "str" is now consistent with
-v FS="str" when str is null. Thanks to Warner Losh.

July 24, 2021:
Fix readrec's definition of a record. This fixes an issue
with NetBSD's RS regular expression support that can cause
an infinite read loop. Thanks to Miguel Pineiro Jr.

Fix regular expression RS ^-anchoring. RS ^-anchoring needs to
know if it is reading the first record of a file. This change
restores a missing line that was overlooked when porting NetBSD's
RS regex functionality. Thanks to Miguel Pineiro Jr.

Fix size computation in replace_repeat() for special case
REPEAT_WITH_Q. Thanks to Todd C. Miller.

Also, included the tests from upstream, though they aren't yet connected
to the tree.

Sponsored by: Netflix


# 4e52f5db 30-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Flag -Ft as deprecated behavior

Upstream is poised to deprecate the -Ft wart in one true awk. None of
the other awks do this, and the gawk maintainer says that he's had no
requests for it in gawk in 30 years maintaining it. github can find a
few instances of it in the wild. As such, warn that it's deprecated and
will go away in the future.

MFC After: 3 days
Sponsored by: Netflix

# a2e3e118 19-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Make -F '' and -v FS="" behave the same

IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v
FS=str. For a null string, this was not the case. Since awk(1) documents
that a null string for FS has a specific behavior, make -F '' behave
consistently with -v FS="".

PR: 241441
Upstream issue: https://github.com/onetrueawk/awk/issues/127
Upstream pull request: https://github.com/onetrueawk/awk/pull/128
MFC After: 2 weeks
Sponsored by: Netflix

# 5ab82b00 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Remove last markings we have on awk

We normally don't add $FreeBSD$ to contrib software. However, these
changes date back to the CVS era of source code management and have been
overlooked. Now that all these files are back to the same as the
upstream bsd-features branch, remove the FreeBSD specific changes, which
are now just $FreeBSD$ and the (FreeBSD) in the version string.

MFC After: 2 weeks
Sponsored by: Netflix

# 628bd30a 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: revert to upstream behavior for ranges for gawk compatibility

In 2005, FreeBSD changed one-true-awk to honor the locale's collating
order. This was billed as a temporary patch. It was also compatible with
the then-current behavior of gawk. That temporary patch has lasted 16
years now.

However, IEEE Std 1003.1-2008 changed the behaivor of ranges in regular
expressions outside of the "C" and "POSIX" locales to be undefined.

Starting in 2011, gawk 4.0 stopped using the locale for the range
regular expressions and used the traditional behavior only. The
maintainer had grown weary of answering why '[A-Z]' would sometimes
match lower-case expressions. The details about are explained here:
https://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

To restore compatibility with other implementaitons of awk, revert this
patch. FreeBSD is the odd-system out. It also has the nice side effect
of eliminating the last of our differences with upstream one-true-awk.

Reviewed by: cy, rgrimes
MFC After: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31114

# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# a4b2ac79 19-Sep-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks

# 0840e960 03-Jan-2013 Xin LI <delphij@FreeBSD.org>

MFV: one-true-awk 20121220.

MFC after: 1 month


# aa0da2e4 11-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

- 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)


# d86a0988 08-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 7-Aug-2011 release.

Approved by: re (kib)


# b40501fb 06-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 6-May-2011 release (upstreamed some of our changes).


# 1b11b783 03-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 1-May-2011 release (except for the isblank change).


# d98dd8e5 10-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Apply patches directly to sources. Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
bracket expressions, until a more complete fix (like handing
BREs) is ready.

- Don't require a space between -[fv] and its argument.

# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# c263f9bf 16-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 24-Apr-2005 release.

# 62ebc626 08-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 7-Feb-2004 release.

# 2e454f23 05-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixes from 31-Jul-2003; make it 8-bit clean.

Forgotten by: ru (for far too long)

# 88b8d487 30-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 29-Jul-2003 release.

# fc6b1dfe 17-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 14-March-2003 release.

# 72969a22 18-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 13-Dec-2002 release.

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 146a1e50 16-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 2002-02-10 release.

# 007c6572 19-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Vendor import of bwk's 2002-02-18 release. Most significant update is the
inclusion of my character class patch.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# 23f24377 01-Aug-2021 Warner Losh <imp@FreeBSD.org>

awk: Merge 20210729 from One True Awk upstream (0592de4a)

July 27, 2021:
As per IEEE Std 1003.1-2008, -F "str" is now consistent with
-v FS="str" when str is null. Thanks to Warner Losh.

July 24, 2021:
Fix readrec's definition of a record. This fixes an issue
with NetBSD's RS regular expression support that can cause
an infinite read loop. Thanks to Miguel Pineiro Jr.

Fix regular expression RS ^-anchoring. RS ^-anchoring needs to
know if it is reading the first record of a file. This change
restores a missing line that was overlooked when porting NetBSD's
RS regex functionality. Thanks to Miguel Pineiro Jr.

Fix size computation in replace_repeat() for special case
REPEAT_WITH_Q. Thanks to Todd C. Miller.

Also, included the tests from upstream, though they aren't yet connected
to the tree.

Sponsored by: Netflix


# 4e52f5db 30-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Flag -Ft as deprecated behavior

Upstream is poised to deprecate the -Ft wart in one true awk. None of
the other awks do this, and the gawk maintainer says that he's had no
requests for it in gawk in 30 years maintaining it. github can find a
few instances of it in the wild. As such, warn that it's deprecated and
will go away in the future.

MFC After: 3 days
Sponsored by: Netflix

# a2e3e118 19-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Make -F '' and -v FS="" behave the same

IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v
FS=str. For a null string, this was not the case. Since awk(1) documents
that a null string for FS has a specific behavior, make -F '' behave
consistently with -v FS="".

PR: 241441
Upstream issue: https://github.com/onetrueawk/awk/issues/127
Upstream pull request: https://github.com/onetrueawk/awk/pull/128
MFC After: 2 weeks
Sponsored by: Netflix

# 5ab82b00 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Remove last markings we have on awk

We normally don't add $FreeBSD$ to contrib software. However, these
changes date back to the CVS era of source code management and have been
overlooked. Now that all these files are back to the same as the
upstream bsd-features branch, remove the FreeBSD specific changes, which
are now just $FreeBSD$ and the (FreeBSD) in the version string.

MFC After: 2 weeks
Sponsored by: Netflix

# 628bd30a 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: revert to upstream behavior for ranges for gawk compatibility

In 2005, FreeBSD changed one-true-awk to honor the locale's collating
order. This was billed as a temporary patch. It was also compatible with
the then-current behavior of gawk. That temporary patch has lasted 16
years now.

However, IEEE Std 1003.1-2008 changed the behaivor of ranges in regular
expressions outside of the "C" and "POSIX" locales to be undefined.

Starting in 2011, gawk 4.0 stopped using the locale for the range
regular expressions and used the traditional behavior only. The
maintainer had grown weary of answering why '[A-Z]' would sometimes
match lower-case expressions. The details about are explained here:
https://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

To restore compatibility with other implementaitons of awk, revert this
patch. FreeBSD is the odd-system out. It also has the nice side effect
of eliminating the last of our differences with upstream one-true-awk.

Reviewed by: cy, rgrimes
MFC After: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31114

# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# a4b2ac79 19-Sep-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks

# 0840e960 03-Jan-2013 Xin LI <delphij@FreeBSD.org>

MFV: one-true-awk 20121220.

MFC after: 1 month


# aa0da2e4 11-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

- 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)


# d86a0988 08-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 7-Aug-2011 release.

Approved by: re (kib)


# b40501fb 06-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 6-May-2011 release (upstreamed some of our changes).


# 1b11b783 03-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 1-May-2011 release (except for the isblank change).


# d98dd8e5 10-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Apply patches directly to sources. Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
bracket expressions, until a more complete fix (like handing
BREs) is ready.

- Don't require a space between -[fv] and its argument.

# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# c263f9bf 16-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 24-Apr-2005 release.

# 62ebc626 08-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 7-Feb-2004 release.

# 2e454f23 05-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixes from 31-Jul-2003; make it 8-bit clean.

Forgotten by: ru (for far too long)

# 88b8d487 30-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 29-Jul-2003 release.

# fc6b1dfe 17-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 14-March-2003 release.

# 72969a22 18-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 13-Dec-2002 release.

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 146a1e50 16-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 2002-02-10 release.

# 007c6572 19-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Vendor import of bwk's 2002-02-18 release. Most significant update is the
inclusion of my character class patch.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# 4e52f5db 30-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Flag -Ft as deprecated behavior

Upstream is poised to deprecate the -Ft wart in one true awk. None of
the other awks do this, and the gawk maintainer says that he's had no
requests for it in gawk in 30 years maintaining it. github can find a
few instances of it in the wild. As such, warn that it's deprecated and
will go away in the future.

MFC After: 3 days
Sponsored by: Netflix


# a2e3e118 19-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Make -F '' and -v FS="" behave the same

IEEE Std 1003.1-2008 mandates that -F str be treated the same as -v
FS=str. For a null string, this was not the case. Since awk(1) documents
that a null string for FS has a specific behavior, make -F '' behave
consistently with -v FS="".

PR: 241441
Upstream issue: https://github.com/onetrueawk/awk/issues/127
Upstream pull request: https://github.com/onetrueawk/awk/pull/128
MFC After: 2 weeks
Sponsored by: Netflix


# 5ab82b00 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: Remove last markings we have on awk

We normally don't add $FreeBSD$ to contrib software. However, these
changes date back to the CVS era of source code management and have been
overlooked. Now that all these files are back to the same as the
upstream bsd-features branch, remove the FreeBSD specific changes, which
are now just $FreeBSD$ and the (FreeBSD) in the version string.

MFC After: 2 weeks
Sponsored by: Netflix


# 628bd30a 21-Jul-2021 Warner Losh <imp@FreeBSD.org>

awk: revert to upstream behavior for ranges for gawk compatibility

In 2005, FreeBSD changed one-true-awk to honor the locale's collating
order. This was billed as a temporary patch. It was also compatible with
the then-current behavior of gawk. That temporary patch has lasted 16
years now.

However, IEEE Std 1003.1-2008 changed the behaivor of ranges in regular
expressions outside of the "C" and "POSIX" locales to be undefined.

Starting in 2011, gawk 4.0 stopped using the locale for the range
regular expressions and used the traditional behavior only. The
maintainer had grown weary of answering why '[A-Z]' would sometimes
match lower-case expressions. The details about are explained here:
https://www.gnu.org/software/gawk/manual/html_node/Ranges-and-Locales.html

To restore compatibility with other implementaitons of awk, revert this
patch. FreeBSD is the odd-system out. It also has the nice side effect
of eliminating the last of our differences with upstream one-true-awk.

Reviewed by: cy, rgrimes
MFC After: 2 weeks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D31114


# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# a4b2ac79 19-Sep-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks

# 0840e960 03-Jan-2013 Xin LI <delphij@FreeBSD.org>

MFV: one-true-awk 20121220.

MFC after: 1 month


# aa0da2e4 11-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

- 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)


# d86a0988 08-Aug-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 7-Aug-2011 release.

Approved by: re (kib)


# b40501fb 06-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 6-May-2011 release (upstreamed some of our changes).


# 1b11b783 03-May-2011 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 1-May-2011 release (except for the isblank change).


# d98dd8e5 10-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Apply patches directly to sources. Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
bracket expressions, until a more complete fix (like handing
BREs) is ready.

- Don't require a space between -[fv] and its argument.

# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# c263f9bf 16-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 24-Apr-2005 release.

# 62ebc626 08-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 7-Feb-2004 release.

# 2e454f23 05-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixes from 31-Jul-2003; make it 8-bit clean.

Forgotten by: ru (for far too long)

# 88b8d487 30-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 29-Jul-2003 release.

# fc6b1dfe 17-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 14-March-2003 release.

# 72969a22 18-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 13-Dec-2002 release.

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 146a1e50 16-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 2002-02-10 release.

# 007c6572 19-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Vendor import of bwk's 2002-02-18 release. Most significant update is the
inclusion of my character class patch.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# a4b2ac79 19-Sep-2014 Pedro F. Giffuni <pfg@FreeBSD.org>

awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR: 193147
MFC after: 5 weeks


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# f96c46c6 15-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# d98dd8e5 10-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Apply patches directly to sources. Their effect is as follows:

- Make one-true-awk respect locale's collating order in [a-z]
bracket expressions, until a more complete fix (like handing
BREs) is ready.

- Don't require a space between -[fv] and its argument.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe


# c263f9bf 16-May-2005 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 24-Apr-2005 release.


# 62ebc626 08-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 7-Feb-2004 release.


# 2e454f23 05-Feb-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixes from 31-Jul-2003; make it 8-bit clean.

Forgotten by: ru (for far too long)


# 88b8d487 30-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Vendor import of bwk's 29-Jul-2003 release.


# fc6b1dfe 17-Mar-2003 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 14-March-2003 release.


# 72969a22 18-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 13-Dec-2002 release.


# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.


# 146a1e50 16-Mar-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 2002-02-10 release.


# 007c6572 19-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Vendor import of bwk's 2002-02-18 release. Most significant update is the
inclusion of my character class patch.


# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.