Lines Matching full:to

5 Permission to use, copy, modify, and distribute this software and
12 to distribution of the software without specific, written prior
15 LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
26 was sent to the printers in August 1987.
29 Fix edge case where FS is changed on commandline. Thanks to
34 been plugged. Thanks to Miguel Pineiro Jr.
37 Force hex escapes in strings to be no more than two characters,
39 consistency, as well as consistency with gawk. Thanks to
45 tempfree in cat, thanks to Miguel Pineiro Jr and valgrind.
49 Thanks to Miguel Pineiro Jr. <mpj@pineiro.cc>.
52 Memory leak when assigning a string to some of the built-in
54 Thanks to Miguel Pineiro Jr. <mpj@pineiro.cc>.
58 truncating its entry in ARGV. (circa 1989) Thanks to
62 Fixed file management memory leak that appears to have been
64 stdout, and stderr (circa 1992). Thanks to Miguel Pineiro Jr.
70 undetected. Thanks to Miguel Pineiro Jr. <mpj@pineiro.cc>.
75 Thanks to Volodymyr Gubarkov, and Todd C Miller.
78 The fix for #83 changed the code to insert 2 chars, but the
79 call to adjbuf just above it only allows for 1 char. This can
84 -v FS="str" when str is null. Thanks to Warner Losh.
89 an infinite read loop. Thanks to Miguel Pineiro Jr.
91 Fix regular expression RS ^-anchoring. RS ^-anchoring needs to
94 RS regex functionality. Thanks to Miguel Pineiro Jr.
97 REPEAT_WITH_Q. Thanks to Todd C. Miller.
100 Small fix so that awk will compile again with g++. Thanks to
105 after recent changes. Thanks to Ozan Yigit.
109 Enhance number to string conversion to do the right thing for
112 test for these values. Thanks to Arnold Robbins. Allows closing
117 Thanks to GitHub user michaelforney.
121 +inf, -inf (case independent) to give NaN and infinity values.
122 Improve things so that string to double conversion is only
124 PR #95. Thanks to Arnold Robbins.
127 Fix to argument parsing to avoid printing spurious newlines.
128 Thanks to Todd Miller. Merges PR #97.
131 Add casts before all the calls to malloc/calloc/realloc in order
132 to get it to compile with g++. Thanks to Arnold Robbins.
135 Additional fixes for DJGPP. Thanks to Eli Zaretskii for
139 Merge PR #93, which adds casts to (void*) for debug prints
140 using the %p format specifier. Thanks to GitHub user YongHaoWu
144 In run.c, use non-restartable multibyte routines to attain
145 portability to DJGPP. Should fix Issue 92. Thanks to Albert Wik
146 for the report and to Todd Miller for the suggested fix.
149 Merge PRs 88-91 which fix small bugs. Thanks to Todd Miller and
152 In order to make life easier, we move exclusively to bison
156 Merge PRs 85 and 86 which fix regressions. Thanks to
160 Merge PRs 82 and 84. The latter fixes issue #83. Thanks to
164 Clear errno before calling errcheck to avoid any spurious errors
165 left over from previous calls that may have set it. Thanks to
168 Fix Issue #78 by allowing \r to follow floating point numbers in
169 lib.c:is_number. Thanks to GitHub user ajcarr for the report
170 and to Arnold Robbins for the fix.
173 In fldbld(), make sure that inputFS is set before trying to
174 use it. Thanks to Steffen Nurpmeso <steffen@sdaoden.eu>
178 Fix checks for compilers that can handle noreturn. Thanks to
183 Thanks to Arnold Robbins.
187 Thanks to GitHub user awkfan77. Closes PR #77.
192 Fix for address sanitizer-found problem. Thanks to GitHub user
200 to use the -y flag to bison.
208 to GitHub user michaelforney. Fix issue #60 ({0} in interval
210 Thanks to Arnold Robbins.
214 on exec flag to files/pipes opened for redirection; courtesy of
224 mere warnings. Thanks to Martijn Dekker <martijn@inlv.org>.
229 to GitHub user awkfan77 for pointing out the direction for
230 the fix. New test T.concat added to the test suite.
234 Fix a bug whereby a{0,3} could match four a's. Thanks to
239 Thanks again to Christos Zoulas.
243 Thanks to Jim Lowe for the report and to Christos Zoulas
250 to Arnold Robbins.
253 Fix from Ori Bernstein to get UTF-8 characters instead of
264 to Christos Zoulas (GitHub user zoulasc). Merges PR 53.
269 Import code cleanups from NetBSD. Much thanks to Christos
278 -fsanitize=unknown. Thanks to Alexander Richardson (GitHub
288 expressions, further to the support for them in strings added on
291 Thanks to Martijn Dekker.
297 Thanks to Warner Losh for collecting all these fixes in
298 one easy place to get them from.
301 Fix field splitting to use FS value as of the time a record
302 was read or assigned to. Thanks to GitHub user Cody Mello (melloc)
308 simple mechanics to the makefile for running the tests and
309 for cleaning up. No changes to awk itself.
313 use-after-free bugs. Thanks to GitHub user Cody Mello (melloc)
317 Allow unmatched right parenthesis in a regular expression to
318 be treated literally. Fixes Issue #40. Thanks to GitHub user
319 Warner Losh (bsdimp) for the report. Thanks to Arnold Robbins
323 Fix check for command line arguments to no longer require that
325 August 11, 1989. Thanks to GitHub user Jamie Landeg Jones for
329 Update awktest.tar(p.50) to use modern options to sort. Needed
330 for Android development. Thanks to GitHub user mohd-akram (Mohamed
335 makefile. We are NOT going to go in the direction of the
336 autotools, though. Thanks to GitHub user nee-san for
343 Thanks to Martijn Dekker <martijn@inlv.org> for the port.
349 relex(). Thanks to GitHub user iamleot.
351 to GitHub user Arnold Robbins (arnoldrobbins)
353 to GitHub user enh.
361 Thanks to GitHub users Arnold Robbins (arnoldrobbins),
366 Added test in maketab.c to prevent generating a proctab entry
368 generated a warning message. Thanks to Nan Xiao for report.
374 Added some casts to silence warnings on debugging printfs.
379 to whom profound thanks.
381 1. ofs-rebuild: OFS value used to rebuild the record was incorrect.
385 the wait(2) macros to create a reasonable exit status.
391 4. a-format: Add POSIX standard %a and %A to supported formats. Check
399 conversion to string happened, even with OFMT, that value was used until
404 Instead, it should convert the value to numeric and give that value.
406 Also added Arnold's tests for these to awktest.tar as T.arnold.
410 current (very minor) fixes to github / onetrueawk
415 [thanks to Arnold Robbins]
418 buffer overflow in error reporting; thanks to tobias ulmer
422 cleaned up a handful of tests that didn't seem to actually
426 added ,NULL initializer to static Cells in run.c; not really
427 needed but cleaner. Thanks to Michael Bombardieri.
430 fiddled makefile to get correct yacc and bison flags. pick yacc
433 added __attribute__((__noreturn__)) to a couple of lines in
434 proto.h, to silence someone's enthusiastic checker.
439 to paul patience and arnold robbins for passing it on and for
442 tiny fiddle in setfval to eliminate -0 results in T.expr, which
446 another fix to avoid core dump with delete(ARGV); again, many thanks
447 to ruslan ermilov.
453 /pat/, \n /pat/ {...} is now legal, though bad style to use.
455 added checks to new -v code that permits -vnospace; thanks to
458 removed fixed limit on number of open files; thanks to aleksey
464 minor type fiddles to make gcc -Wall -pedantic happier (but not
474 and arnold robbins, changed srand() to return the previous
476 an Awkfloat internally though converted to unsigned int to
477 pass to the library srand(). thanks, everyone.
480 in fldbld, by adding space for one extra \0. thanks to
483 removed the files related to compilation on windows. i no
488 fixed long-standing overflow bug in run.c; many thanks to
491 fixed bug that didn't parse -vd=1 properly; thanks to santiago
500 change to FS is now noticed immediately for subsequent splits.
502 changed the name getline() to awkgetline() to avoid yet another
506 temporarily for now defined HAS_ISBLANK, since that seems to
508 but seems to be arriving at different systems at different
513 run into the problem, apparently. thanks to alistair crooks.
516 minor fix in lib.c: increase inputFS to 100, change malloc
517 for fields to n+1.
521 thanks to david o'brien, freebsd, for both fixes.
524 fiddle in makefile to fix for BSD make; thanks to igor sobrado.
530 fixed a bug in matching the null RE in sub and gsub. thanks to al aho
531 who actually did the fix (in b.c), and to wolfgang seeberg for finding
534 fixed quotation in b.c; thanks to Hal Pratt and the Princeton Dante
539 fiddled maketab.c to not complain about bison-generated values.
541 removed the obsolete -V argument; fixed --version to print the
544 fixed wording and an outright error in the usage message; thanks to igor
564 removed some #ifdef's in run.c and lex.c that appear to no
569 block, apparently as required by posix. thanks to havard eidnes
574 thanks to arnold robbins for a suggestion that started me
579 call of SYNTAX(), test malloc return in lib.c, all with thanks to
584 smaller size, and i think that's right. added some assertions to b.c
585 to catch places where it might overrun. the RE code is still fragile.
589 e.g., print $(2^32-1). thanks to ruslan ermilov, giorgos keramidas
595 to (re-)initialize. thanks to steve fisher for spotting this and
601 was longer than the number of states triggered a failure to initialize
602 the machine properly. many thanks to moinak ghosh for not only finding
604 code known to man.
606 fixed a storage leak in call() that appears to have been there since
608 string to a parameter leaked a Cell. thanks to moinak ghosh for
612 fixed, thanks to andrey chernov and ruslan ermilov, a bug in lex.c
614 to EOF with a signed comparison.)
618 line state ^ for RE's in the set of valid characters; this led to a
619 variety of odd problems, including failure to properly match certain
620 regular expressions in non-US locales. thanks to ruslan for keeping
624 n-th try at getting internationalization right, with thanks to volker
626 should not be blamed for the outcome. according to posix, "." is the
629 of numbers. so it's intended to work that way.
631 i have rescinded the attempt to use strcoll in expanding shorthands in
635 but i cannot explain it to a human user. (this behavior can be seen
638 the issue appears to be that strcoll is meant for sorting, where
641 for regular expressions, where the goal is to match specific
643 are available in awk, and they are more likely to work correctly in
647 i apologize to friends and colleagues in other parts of the world.
648 i would truly like to get this "right", but i don't know what
649 that is, and i do not want to keep making changes until it's clear.
655 subtle change to split: if source is empty, number of elems
659 added some parens to isblank, in another attempt to make things
681 better, this will have to wait.
684 modified b.c (with tiny changes in main and run) to support
686 classes. thanks to ruslan ermilov (ru@freebsd.org) for code.
687 the function isblank doesn't seem to have propagated to any
692 modified run/format() and tran/getsval() to do a slightly better
697 variable has been irrevocably set. thanks to arnold robbins for
700 fixed subtle bug in format that could get core dump. thanks to
704 added some tests for null pointers to debugging printf's, which
705 were never intended for external consumption. thanks to dave
708 GNU compatibility: an empty regexp matches anything (thanks to
709 dag-erling smorgrav, des@ofug.org). subject to reversion if
712 pervasive small changes to make things more const-correct, as
717 minor documentation changes to note that this now compiles out
721 changed types in posix chars structure to quiet solaris cc.
726 length(arrayname) returns number of elements; thanks to
729 added a makefile.win to make it easier to build on windows.
735 portable. thanks to dag-erling smorgrav for code.
739 broken (noted thanks to volker kiefel).
750 more (const char *) casts in b.c and tran.c to silence warnings.
754 like $f[1] to be syntax errors. thanks to arnold robbins for
758 fixed some nextfile bugs: not handling all cases. thanks to
768 processing of \'s. thanks to arnold robbins.
771 minor fiddles in tran.c to keep compilers happy about uschar.
772 thanks to norman wilson.
776 band-aid in b.c (member()), and some (uschar) casts to head
778 changed HAT to NCHARS-2. thanks again to santiago vila.
780 changed maketab.c to ignore apparently out of range definitions
781 instead of halting; new freeBSD generates one. thanks to
786 unsigned char*'s. not clear i have them all yet. thanks to
791 been there since functions were added ~1983. thanks to
794 added test in envinit to catch environment "variables" with
795 names beginning with '='; thanks to Berend Hasselman.
798 added test in defn() to catch function foo(foo), which
799 otherwise recurses until core dump. thanks to arnold
803 added *bp in gettok in lex.c; appears possible to exit function
804 without terminating the string. thanks to russ cox.
807 added function stdinit() to run to initialize files[] array,
812 based on vprintf, to avoid problems caused by overrunning
813 fixed-size errbuf array. thanks to ralph corderoy for the
819 variable with value ending in \. (thanks to nelson beebe for
828 changed true/false to True/False in run.c to make it
829 easier to compile with C++. Added some casts on malloc
830 and realloc to be honest about casts; ditto. changed
831 ltype int to long in struct rrow to reduce some 64-bit
833 same purpose. thanks to Nelson Beebe for these portability
837 by adding ptoi and itonp to localize the casts, which are
843 (thanks to Nelson Beebe for both of these.)
847 error; use a newer version or switch to bison, since sgi
848 is unlikely to fix it.
851 changed isnumber to is_number to avoid the problem caused by
855 thanks to Dan Allen.
859 thanks to Stephen Nutt for finding these and providing the fixes.
864 thanks to Dan Allen.
866 added a few (int) casts to silence useless compiler warnings.
869 added proctab.c to the bundle output; one less thing
870 to have to compile out of the box.
872 added calls to _popen and _pclose to the win95 stub for
873 pipes (thanks to Steve Adams for this helpful suggestion).
874 seems to work, though properties are not well understood
879 fixed a couple of bugs in getrec: could fail to update $0
886 thanks to ross ridge for finding these, and for providing
890 fixed potential bug in readrec: might fail to update record
891 pointer after growing. thanks to dan levy for spotting this
895 added -V to print version number and die.
908 thanks to nelson beebe for pointing this one out.
914 thanks to arnold robbins for advice here.
923 now using strtod to test whether a string is a number, instead of
927 removed now-pointless optimization in makefile that tries to avoid
936 demand. there is still some tension between trying to make this
945 using code provided by dan levy (to whom profuse thanks), replaced
947 to grow arrays as needed for printf, sub, gsub, etc.
951 thanks to arnold robbins.
955 in run.c; added overflow tests to some previously unchecked cases.
961 increased RECSIZE to 8192 to push problems further over the horizon.
963 added \r to \n as input line separator for programs, not data.
966 modified format() to permit explicit printf("%c", 0) to include
967 a null byte in output. thanks to ken stailey for the fix.
971 access to the environment (ENVIRON). this is a first approximation
972 to a "safe" version of awk, but don't rely on it too much. thanks
973 to joan feigenbaum and matt blaze for the inspiration long ago.
976 fixed long-standing bug in sub, gsub(/a/, "\\\\&"); thanks to
984 changed field-splitting to conform to posix definition: fields are
985 split using the value of FS at the time of input; it used to be
986 the value when the field or NF was first referred to, a much less
987 predictable definition. thanks to arnold robbins for encouragement
988 to do the right thing.
994 explicit hex in reg exprs now limited to 2 chars: \xa, \xaa.
1003 s/aprintf/awkprint, s/asprintf/awksprintf/ to avoid some name clashes
1006 thanks to jeffrey friedl for several of these.
1009 an attempt to rationalize the (unsigned) char issue. almost all
1012 added some latin-1 tests to the regression, but i'm not confident;
1013 none of my compilers seem to care much. thanks to nelson beebe for
1024 added nextfile, as in gawk: causes immediate advance to next
1025 input file. (thanks to arnold robbins for inspiration and code).
1027 small fixes to regexpr code: can now handle []], [[], and
1030 or correct, however. (thanks to jeffrey friedl for pointing out
1037 fixed call to time in run.c (bltin); arg is time_t *.
1041 (thanks to nelson beebe for pointing out some of these problems.)
1051 portability to nameless systems.
1058 were not set. (thanks to purify, all of whose complaints i
1068 to avoid unnecessary yacc invocations.
1071 added dynamically growing strings to awk.lx.l and b.c
1072 to permit regular expressions to be much bigger.
1079 trivial fix to printf to limit string size in sub().
1085 Regression tests now use private echo, to avoid quoting problems.
1088 changed error() to print line number as %d, not %g.
1097 to be opened.
1105 these really ought to adjust automatically.
1111 things will continue to run slow, but maybe a bit longer.
1122 added (file/pipe) builtin. hard to test satisfactorily.
1129 die-casting time: converted to ansi C, installed that.
1132 fixed storage leak in freefa, failing to recover [N]CCL.
1133 thanks to Bill Jones (jones@cs.usask.ca)
1140 overflow in penter. thanks to mark larsen.
1143 increased buffer in gsub. a very crude fix to a general problem.
1147 enforce variable name syntax for commandline variables: has to
1173 changed for (i in array) to access elements in sorted order.
1178 check error status on all writes, to avoid banging on full disks.
1184 failed to set numeric state on $0 in cmd|getline context in run.c.
1203 changed NCHARS to 256 to handle 8-bit characters in strings
1204 presented to match(), etc.
1207 changed struct rrow (awk.h) to use long instead of int for lval,
1214 now has to be parenthesized as !(x=y), and makes others work properly:
1218 Added \x to regular expressions (already in strings).
1219 Limited octal to octal digits; \8 and \9 are not octal.
1221 Added a bunch of tests to T.re and T.sub to verify some of this.
1229 srand now returns previous seed value (0 to start).
1236 another try to get the max number of open files set with
1239 small fix to input() in case of multiple reads after EOF.
1247 added a bunch of casts to the code to tell the truth about
1249 setlocale call to the front of main, though probably no one
1257 fixed bug: commandline variable assignment has to look like
1260 changed number of arguments to functions to static arrays
1261 to avoid repeated malloc calls.
1268 done before the BEGIN block for sure. they have to precede the
1270 Modified Aug 2 to require a separate -v for each assignment.
1276 add newline to usage message.
1286 (this should be done by pow() but it seems not to be locally.)
1287 done to x ^= y as well.
1298 fixed order of evaluation of commandline assignments to match
1301 this invalidates the suggested answer to ex 4-1 (p 195).
1314 Changed grammar to prohibit constants as 3rd arg of sub and gsub;
1321 will be able to deal with \x correctly.
1324 Fixed bug that caused tempcell list to contain a duplicate.
1331 that seems to satisfy all compilers.
1334 Added a bit of code to error printing to avoid printing nulls.
1338 With fear and trembling, modified the grammar to permit
1341 to the ghost of ancient implementations remains undefined
1342 and thus subject to change without notice or apology.
1346 Fixed bug in call() that failed to recover storage.
1362 Fixed to handle deletion of non-existent array right;
1363 complains about attempt to delete non-array element.
1366 Now guarantees to evaluate all arguments of built-in
1382 still subject to rescinding, however.
1390 to make it less obvious.
1403 Fixed lib.c to permit _ in commandline variable names.
1406 main.c fixed to recognize -- as terminator of command-
1411 Newer C compilers apply a strict scope rule to extern
1413 lib.c and tran.c have been moved to obviate this problem.
1417 Subject to rescinding without notice.
1426 fixed aprintf, asprintf, format to catch them.