| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
and installing USD/SMM/PSD docs.
jmc@ agrees with the direction, ok millert@ on an earlier diff
|
|
|
|
|
|
|
|
| |
This resulted in the NUL terminator being written to the end of the
buffer which was not the same as the end of the string. That in
turn caused garbage bytes from malloc() to be processed. Also
change the NUL termination to be less error prone by writing the
NUL immediately after the last byte copied. OK sthen@
|
| |
|
|
|
|
| |
Includes the official fix for +-inf and +-nan handling.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
This is the only missing time function compared to those two
implementations. Doc changes OK jmc@
|
| |
|
|
|
|
|
|
|
| |
If awk prints an error message while when compile_time is still set
to ERROR_PRINTING, don't try to print the context since there is
none. This can happen due to a problem with, e.g., unknown command
line options.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Otherwise, awk will continue trying to perform I/O on a closed stdio stream.
This appears to be consistent with how gawk behaves. OK tim@
|
|
|
|
|
|
| |
Otherwise awk could fclose(stdin) twice (it may appear more than once)
and closing stderr means awk cannot report errors closing other streams.
OK tim@
|
|
|
|
|
| |
Fixed as crash reported by Jan Stary when the input char has the high
bit set and FS is a regex.
|
| |
|
|
|
|
|
| |
The length of SUBSEP needs to be rechecked after calling execute(),
in case SUBSEP itself has been changed. From tim@
|
|
|
|
|
|
|
| |
Concatenation evaluated both sides of the expression before doing
its work, which, since assign() evaluates to the cell being assigned
to, meant that expressions like "print (a = 1) (a = 2)" would print
"22" rather than "12". From Tim van der Molen
|
|
|
|
| |
OK jmc@ kn@
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
This allows expressions like '/[[/[]/' to parse which are also
allowed by gawk.
|
|
|
|
|
|
| |
seed is explicitly set.
OK millert@
|
|
|
|
|
| |
While here, add proper bounds checking for the partial match case
in refldbld() too and check strlcpy() return values throughout.
|
|
|
|
|
| |
Implements the gensub(), systime() and strftime() functions for
greater gawk compatibility.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This matches upstream awk and OpenBSD only implements LC_CTYPE anyway.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Add test in maketab.c to prevent generating a proctab entry for
YYSTYPE_IS_DEFINED.
|
|
|
|
|
| |
Disallow '$' in printf formats
Added some casts to silence warnings on debugging printfs.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
to report, so make sure errno is set to zero before invoking a
function to check so that a previous such errno value won't result
in a false positive. This could happen simply due to input line fields
that looked enough like floating-point input to trigger ERANGE.
Problem noted by Jordan Geoghegan (jordan (at) geoghegan.ca), with
clue from Ze' Loff (zeloff (at) zeloff.org)
ok millert@
|
|
|
|
| |
This was the last awk release before the move to github.
|
|
|
|
|
|
| |
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
|