summaryrefslogtreecommitdiff
path: root/usr.bin/awk/awk.1
AgeCommit message (Collapse)Author
2021-11-08missing full stop;Jason McIntyre
2021-03-08use a journal reference instead of cstr when possibleJonathan Gray
2021-03-08Add some references, most of these were removed when we stopped buildingJonathan Gray
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff
2020-12-21Fix typo in mktime() year format description. From Paul de Weerd.Todd C. Miller
2020-12-09Update awk to December 8, 2020 version.Todd C. Miller
Prevents strings beginning with "inf" or "nan" from being interpreted as infinity or not-a-number respectively which still parsing "inf" and "nan" (with or without a leading sign) correctly.
2020-11-05double word fixes;Jason McIntyre
2020-08-28Implement mktime() function for compatibility with mawk and gawk.Todd C. Miller
This is the only missing time function compared to those two implementations. Doc changes OK jmc@
2020-07-24Regular expression support in RS is an extension.Todd C. Miller
2020-06-27Improve description of field splitting and document FS special cases.Todd C. Miller
OK jmc@ kn@
2020-06-26Document that FS is applied at the time the input line is read.Todd C. Miller
Previously, our awk suffered from a bug where FS was applied too late. This fix has the potential to cause problems for awk scripts written to the old (buggy) behavior. The current behavior is consistent with other awk implementations such as mawk and gawk.
2020-06-17Document that rand() returns non-deterministic random numbers unless aTim van der Molen
seed is explicitly set. OK millert@
2020-06-13Integrate the bsd-features branch from awk github.Todd C. Miller
Implements the gensub(), systime() and strftime() functions for greater gawk compatibility.
2020-06-13POSIX doesn't permit an unescaped '/' in an extended regular expression.Todd C. Miller
Unlike upstream awk, ours has historically allowed unescaped '/' inside a bracket expression for compatibility with other awk implementations but the check was too simple-minded. This improves the matching to allow things like /[]/]/, /[^]// and '/[abc[:digit:]/@#]/' To enable strict POSIX compliance, set POSIXLY_CORRECT.
2020-06-10Update awk to Jan 31, 2020 version.Todd C. Miller
2020-06-10Update awk to Oct 6, 2019 version.Todd C. Miller
2020-06-10Update awk to March 5, 2019 version.Todd C. Miller
2020-06-10Update awk to Aug 23, 2018 version.Todd C. Miller
2020-01-22claudio noticed that "exit" inside the main {} clause still runs the EXITTheo de Raadt
clause, this was poorly documented as "immediately", and "after the last line" which is inaccurate there are other causes. Explain this a bit better. ok millert claudio
2019-05-26use proper crossreferencesChristian Weisgerber
2015-09-14Avoid .Ns right after .Pf, it's pointless.Ingo Schwarze
In some cases, do additional cleanup in the immediate vicinity.
2015-01-16fix placement of opening parentheses, and drop some .Xo while hereIngo Schwarze
2014-12-15.Xr cut which may be what you're really looking for.Ted Unangst
2014-03-17as suggested by schwarze, reshuffle STANDARDS text detailing posix featuresJason McIntyre
we don;t support next to the posix compat blurb, in order to make things a bit clearer; this also makes the text more concise; ok millert schwarze sobrado
2011-05-02no need to escape `|'; as discussed with schwartzeJason McIntyre
2011-03-22some small tweaks from Michael W. Bombardieri;Jason McIntyre
ok sobrado
2011-02-07Between groff-1.15 and groff-1.20.1, the .Ns macro was changed to noIngo Schwarze
longer suppress spacing when used at the beginning of an input line, and mandoc now follows the same behaviour as new groff. Thus, sweep the tree and remove useless .Ns. Most places found by jmc@; ok jmc@ kristaps@.
2010-10-01more EXIT STATUS tweaks; from Daniel DickmanJason McIntyre
2010-08-25get rid of the nawk hard linkTheo de Raadt
ok millert guenther
2010-08-08convert some of the weirder displays into lists, to avoid mangling;Jason McIntyre
2010-01-10remove references to docs we no longer install;Jason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-09-04+awk does not support {n,m} pattern matchingJason McIntyre
noted by Vadim Zhukov, though slightly different (doc) fix committed; ok millert
2008-07-25repair .Pq use; Alan R. S. BuenoTheo de Raadt
2008-06-04tweak previous, and arrange the text to read a little better;Jason McIntyre
2008-06-04Extend awk with bitwise operations. This is an extension to the awkPierre-Yves Ritschard
spec and documented as such, but comes in handy from time to time. The prototypes make it compatible with a similar GNU awk extension. ok millert@, enthusiasm from deraadt@
2007-06-27printf(1) is the correct reference here, not printf(3);Jason McIntyre
from otto; ok millert
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30- use a consistent text for STANDARDSJason McIntyre
- note which options are extensions to POSIX
2007-01-29sync the -f description w/ its synopsis;Jason McIntyre
2006-03-29- document return value of cmd | getline [var]Jason McIntyre
- document fflush w/o arg from matthias kilian; ok otto
2005-05-12.Xr script 7Jason McIntyre
2004-10-04refer to re_format.7 rather than egrep.1 for a description of EREs;Jason McIntyre
2004-04-19point people to usd/psd docs;Jason McIntyre
2003-12-19- adjust some list widths for better postscript outputJason McIntyre
- reference printf(1) for a list of C escapes
2003-12-19add an example showing how to print to standard error;Jason McIntyre
suggested by otto@
2003-12-18document various aspects of awk behaviour:Jason McIntyre
- when newlines are permissible - effects of null RS - $NF can be used to find value of last field - -F [ ] can be used to set FS to a single space - t and \t are synonyms when used with FS. use [t] for a literal `t'. - make [prog | -f profile] optional again in SYNOPSIS Also move the functions to the end of the page for a more logical layout.
2003-12-16expand documentation of built-ins:Jason McIntyre
group them according to POSIX - arithmetic, string, I/O, general and better document how they work. use section headers for more logical navigation. ok jose@
2003-12-12- update SYNOPSISJason McIntyre
- standard options list - document -V and -d[n] - -mr and -mf no longer supported - some formatting issues - descriptions of examples before examples and indent examples - update SEE ALSO ok millert@
2003-11-24typo from Michael Knudsen;Jason McIntyre
also, kill some .Pp's before displays, and add one after;
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@