• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
12020-07-30         Arnold D. Robbins     <arnold@skeeve.com>
2
3	By fiat, we use bison for $(YACC). Trying to accommodate
4	different versions didn't work.
5
6	* makefile: Significant cleanup. Replace all ytab* references
7	with awkgram.tab.* and simplify definition of YACC.
8	* .gitignore: Remove ytab* references.
9	* b.c, lex.c, maketab.c, parse.c, run.c: Replace include of ytab.h
10	with awkgram.tab.h.
11	* lib.c, main.c, tran.c: Remove include of ytab.h, wasn't needed.
12
132020-01-20         Arnold D. Robbins     <arnold@skeeve.com>
14
15	* run.c (openfile): Set the close-on-exec flag for file
16	and pipe redirections that aren't stdin/stdout/stderr.
17
182020-01-06         Arnold D. Robbins     <arnold@skeeve.com>
19
20	Minor fixes.
21	* b.c (replace_repeat): Turn init_q back into an int.
22	* lex.c (string): Use \a instead of \007.
23	* tran.c (catstr): Use snprintf instead of sprintf.
24
252020-01-01         Arnold D. Robbins     <arnold@skeeve.com>
26
27	* tran.c (syminit, arginit, envinit): Free sval member before
28	setting it. Thanks to valgrind.
29	* b.c: Small formatting cleanups in several routines.
30
312019-12-27         Arnold D. Robbins     <arnold@skeeve.com>
32
33	* b.c (replace_repeat): Fix a bug whereby a{0,3} could match
34	four a's.  Thanks to Anonymous AWK fan <awkfan77@mailfence.com>
35	for the report. Also, minor code formatting cleanups.
36	* testdir/T.int-expr: New file.
37
382019-12-11         Arnold D. Robbins     <arnold@skeeve.com>
39
40	* README: Renamed to ...
41	* README.md: ... this. Cleaned up some as well,
42	including moving to Markdown.
43
442019-11-08         Arnold D. Robbins     <arnold@skeeve.com>
45
46	* test/T.chem: Use $oldawk instead of hardwiring 'awk'.
47	* test/T.lilly: Remove gawk warnings from output, improves
48	portability.
49
502019-10-07         Arnold D. Robbins     <arnold@skeeve.com>
51
52	* b.c (fnematch): Change type of pbuf from unsigned char to char.
53	* proto.h (fnematch): Ditto.
54
552019-10-06         Arnold D. Robbins     <arnold@skeeve.com>
56
57	* lib.c (readrec): Allow RS a regular expression. Imported
58	the code from the NetBSD awk.
59	* b.c (fnematch): New function for implementing the feature.
60	* awk.1: Updated.
61	* main.c (version): Updated.
62
632019-06-24         Arnold D. Robbins     <arnold@skeeve.com>
64
65	* makefile: Revise to take into account there is no more awktest.tar,
66	add targets 'check' and 'test', and also 'testclean' to clean up
67	after test run.  Have 'clean' and 'cleaner' depend upon 'testclean'.
68
692019-06-23         Arnold D. Robbins     <arnold@skeeve.com>
70
71	* testdir: Extracted from awktest.tar and added to Git.
72	* awktest.tar: Removed.
73
742019-06-06         Arnold D. Robbins     <arnold@skeeve.com>
75
76	* awk.1: Fix a typo, minor edits.
77
782019-06-05         Arnold D. Robbins     <arnold@skeeve.com>
79
80	* b.c (relex): Count parentheses and treat umatched right paren
81	as a literal character.
82	* awktest.tar (testdir/T.re): Added a test case.
83	* main.c (version): Updated.
84
852019-05-29         Arnold D. Robbins     <arnold@skeeve.com>
86
87	* lib.c (isclvar): Remove check for additional '=' after
88	first one. No longer needed.
89
902019-01-26         Arnold D. Robbins     <arnold@skeeve.com>
91
92	* main.c (version): Updated.
93
942019-01-25         Arnold D. Robbins     <arnold@skeeve.com>
95
96	* run.c (awkgetline): Check for numeric value in all getline
97	variants. See the numeric-getline.* files in bugs-fixed directory.
98
992018-08-29         Arnold D. Robbins     <arnold@skeeve.com>
100
101	* REGRESS: Check for existence of a.out. If not there, run
102	make.  Enable core dumps for T.arnold system status test
103	to work on MacOS X.
104
1052018-08-22         Arnold D. Robbins     <arnold@skeeve.com>
106
107	* awktest.tar (testdir/T.expr): Fix test for unary plus.
108
1092018-08-22         Arnold D. Robbins     <arnold@skeeve.com>
110
111	* REGRESS: Extract tests if necessary, set PATH to include '.'.
112	* regdir/beebe.tar (Makefile): Fix longwrds test to prefix
113	sort with LC_ALL=C.
114	* awktest.tar: Updated from fixed test suite, directory
115	it extracts is now called 'testdir' to match what's in top-level
116	REGRESS script.
117	* regdir: Removed, as Brian wants to keep the test suite in
118	the tar file.
119
1202018-08-22         Arnold D. Robbins     <arnold@skeeve.com>
121
122	* FIXES, lib.c, run.c, makefile, main.c: Merge from Brian's tree.
123	* REGRESS: New file, from Brian.
124	* awktest.tar: Restored from Brian's tree.
125
1262018-08-22         Arnold D. Robbins     <arnold@skeeve.com>
127
128	* awkgram.y (UPLUS): New token. In the grammar, call op1()
129	with it.
130	* maketab.c (proc): Add entry for UPLUS.
131	* run.c (arith): Handle UPLUS.
132	* main.c (version): Updated.
133	* bugs-fixed/unary-plus.awk, bugs-fixed/unary-plus.bad,
134	bugs-fixed/unary-plus.ok: New files.
135
1362018-08-10         Arnold D. Robbins     <arnold@skeeve.com>
137
138	* TODO: Updated.
139	* awk.1: Improve use of macros, add some additional explanation
140	in a few places, alphabetize list of variables.
141
1422018-08-08         Arnold D. Robbins     <arnold@skeeve.com>
143
144	* awk.h (Cell): Add new field `fmt' to track xFMT value used
145	for a string conversion.
146	[CONVC, CONVO]: New flag macros.
147	* bugs-fixed/README: Updated.
148	* bugs-fixed/string-conv.awk, bugs-fixed/string-conv.bad,
149	bugs-fixed/string-conv.ok: New files.
150	* main.c (version): Updated.
151	* proto.h (flags2str): Add declaration.
152	* tran.c (setfval): Clear CONVC and CONVO flags and set vp->fmt
153	to NULL.
154	(setsval): Ditto. Add large comment and new code to manage
155	correct conversion of number to string based on various flags
156	and the value of vp->fmt. The idea is to not convert again
157	if xFMT is the same as before and we're doing the same conversion.
158	Otherwise, clear the old flags, set the new, and reconvert.
159	(flags2str): New function. For debug prints and for use from a debugger.
160
1612018-08-05         Arnold D. Robbins     <arnold@skeeve.com>
162
163	Fix filename conflicts in regdir where the only difference was
164	in letter case. This caused problems on Windows systems.
165
166	* regdir/Compare.T1: Renamed from regdir/Compare.T.
167	* regdir/t.delete0: Renamed from regdir/t.delete.
168	* regdir/t.getline1: Renamed from regdir/t.getline.
169	* regdir/t.redir1: Renamed from regdir/t.redir.
170	* regdir/t.split1: Renamed from regdir/t.split.
171	* regdir/t.sub0: Renamed from regdir/t.sub.
172	* regdir/REGRESS: Adjusted.
173
1742018-08-04         Arnold D. Robbins     <arnold@skeeve.com>
175
176	With scalpel, tweasers, magnifying glass and bated breath,
177	borrow code from the NetBSD version of nawk to fix the years-old
178	bug whereby decrementing the value of NF did not change the
179	record.
180
181	* lib.c (fldbld): Set donerec to 1 when done.
182	(setlastfld): New function.
183	* proto.h (setlastfld): Add declaration.
184	* run.c (copycell): Make code smarter about flags (from NetBSD code).
185	* tran.c (setfree): New function.
186	* tran.c (setfval): Normalize negative zero to positive zero.
187	If setting NF, clear donerec and call setlastfld().
188	(setsval): Remove call to save_old_OFS().  If setting OFS, call
189	recbld(). If setting NF, clear donerec and call setlastfld().
190
191	As part of the process, revert OFS-related changes of 2018-05-22:
192
193	* awk.h (saveOFS, saveOFSlen, save_old_OFS): Remove declarations.
194	* lib.c (recbld): Use *OFS instead of saveOFS.
195	* run.c (saveOFS, saveOFSlen, save_old_OFS): Remove.
196	* tran.c (syminit): Remove initialization of saveOFS and saveOFSlen.
197
198	General stuff that goes along with all this:
199
200	* bugs-fixed/README: Updated.
201	* bugs-fixed/decr-NF.awk, bugs-fixed/decr-NF.bad,
202	bugs-fixed/decr-NF.ok: New files.
203	* main.c (version): Updated.
204	* regdir/README.TESTS: Fix awk book title.
205	* regdir/T.misc: Revise test to match fixed code.
206	* run.c (format): Increase size of buffer used for %a test. (Unrelated
207	to NF or OFS, but fixes a compiler complaint.)
208
2092018-06-07         Arnold D. Robbins     <arnold@skeeve.com>
210
211	* regdir/beebe.tar: Fix longwrds.ok so that the test will pass.
212	The file was incorrectly sorted.
213
2142018-06-06         Arnold D. Robbins     <arnold@skeeve.com>
215
216	* regdir/T.lilly: Fix the bug again in the second instance
217	of the code. Thanks to BWK for pointing this out.
218
2192018-05-31         Arnold D. Robbins     <arnold@skeeve.com>
220
221	* regdir/T.lilly: Fix a syntax error and ordering bug
222	in creating the 'foo' file.
223
2242018-05-23         Arnold D. Robbins     <arnold@skeeve.com>
225
226	* awk.1: Remove standalone 'awk' at the top of file, it messed up
227	the formatting. Arrange built-in variable list in alphabetical
228	order.
229
2302018-05-23         Arnold D. Robbins     <arnold@skeeve.com>
231
232	* main.c (version): Add my email address and a date so that
233	users can tell this isn't straight BWK awk.
234	* README.md: Minor updates.
235	* TODO: Updated.
236
2372018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
238
239	Add POSIX-required formats %a and %A.
240
241	* run.c (format): Check for %a support in C library. If there,
242	allow %a and %A as valid formats.
243	* TODO: Updated.
244	* bugs-fixed/README: Updated.
245	* bugs-fixed/a-format.awk, bugs-fixed/a-format.bad,
246	bugs-fixed/a-format.ok: New files.
247
2482018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
249
250	* FIXES: Restored a line from a much earlier version that
251	apparently got lost when the dates were reordered.
252	* TODO: Updated.
253
2542018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
255
256	* README.md: New file.
257
2582018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
259
260	* regdir/echo.c, regdir/time.c: Minor fixes to compile without
261	warning on current GCC / Linux.
262
2632018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
264
265	* TODO: New file.
266
2672018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
268
269	* makefile (gitadd, gitpush): Remove these targets. They
270	should not be automated and were incorrect for things that
271	would be done regularly.
272
2732018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
274
275	Fix nawk so that [[:blank:]] only matches space and tab instead
276	of any whitespace character, originally made May 10, 2018.
277	See bugs-fixed/space.awk.
278
279	This appears to have been a thinko on Brian's part.
280
281	* b.c (charclasses): Use xisblank() function for [[:blank:]].
282	* bugs-fixed/README: Updated.
283	* bugs-fixed/space.awk, bugs-fixed/space.bad,
284	bugs-fixed/space.ok: New files.
285
2862018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
287
288	* .gitignore: New file.
289
2902018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
291
292	Fix nawk to provide reasonable exit status for system(),
293	a la gawk, originally made March 12, 2016. See
294	bugs-fixed/system-status.awk.
295
296	* run.c (bltin): For FSYSTEM, use the macros defined for wait(2)
297	to produce a reasonable exit value, instead of doing a floating-point
298	division by 256.
299	* awk.1: Document the return status values.
300	* bugs-fixed/README: Updated.
301	* bugs-fixed/system-status.awk, bugs-fixed/system-status.bad,
302	bugs-fixed/system-status.ok: New files.
303
3042018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
305
306	Bug fix with respect to rebuilding a record, originally
307	made August 19, 2014. See bugs-fixed/ofs-rebuild.awk.
308
309	* awk.h (saveOFS, saveOFSlen): Declare new variables.
310	* lib.c (recbld): Use them when rebuilding the record.
311	* run.c (saveOFS, saveOFSlen): Define new variables.
312	(save_old_OFS): New function to save OFS aside.
313	* tran.c (syminit): Initialize saveOFS and saveOFSlen.
314	(setsval): If setting a field, call save_old_OFS().
315	* bugs-fixed/README, bugs-fixed/ofs-rebuild.awk,
316	bugs-fixed/ofs-rebuild.bad, bugs-fixed/ofs-rebuild.ok: New files.
317
3182018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
319
320	* makefile (YACC): Use bison.
321
3222018-05-22         Arnold D. Robbins     <arnold@skeeve.com>
323
324	* ChangeLog: Created.
325	* regdir: Created. Based on contents of awktest.a.
326	* .gitattributes: Created, to preserve CR LF in regdir/t.crlf.
327	* awktest.a: Removed.
328	* regdir/T.gawk, regdir/T.latin1: Updated from awktest.tar.
329	* awktest.tar: Removed.
330