12010-09-01  Andreas Kupries  <andreask@activestate.com>
2
3	* Makefile.in: [Bug 865278] Semi-applied Don Porter's patch adding
4	code which prevents the package from registering with Tcl
5	interpreters which cannot load it, i.e. below the version it was
6	compiled against. Semi because the pkgIndex.in in his patch is
7	not used, the pkgIndex.tcl is generated by the Makefile(.in).
8	* pkgIndex.in: Removed. File not used.
9
102010-08-31  Andreas Kupries <andreask@activestate.com>
11
12	* Various cleanups, local patches of ActiveState.
13	* exp_clib.c: Remove local copy of Tcl_ErrnoMsg().
14	* exp_inter.c: Hack access to TCL_REG_BOSONLY when not present,
15	became private with Tcl 8.5 and higher.
16	* expect.h: Remove the local fiddling with the memory allocation
17	and panic macros.
18
19	* Dbg.c: [Bug 2972727]: Applied the parts of Larry Virden's patch
20	  which were still current. Most of it applied to the partially
21	  ansified sources we had in trunk for a time and where errors in
22	  that set of changes, thus out of date now.
23
24	* example/unbuffer: [Bug 2949748]: Applied patch by Vitezslav
25	  Crhonek <vcrhonek@users.sourceforge.net> to prevent unbuffer
26	  from eating the exit code of the command it ran (regular mode
27	  only, not -p). Slightly modified, I removed the superfluous
28	  'eval' used to invoke 'wait', invoking it directly.
29
302010-08-27  Jeff Hobbs  <jeffh@ActiveState.com>
31
32	* retoglob.c: Fail if the generated glob contains more than
33	two asterisks.  Fixes [Expect SF Bug 3010684] (cederqvist)
34
35	* exp_main_sub.c: add return to silence compiler warning.
36	Updated EXP_VERSION to 5.45.0
37
38	* config.guess, config.sub, expect.m4 (removed):
39	* configure, configure.in, tclconfig/tcl.m4: Update to TEA 3.9
40	* Makefile.in, aclocal.m4: Partial cleanup of the build system.
41	* testsuite/Makefile.in:   Remove unused EXP_ from configure.in
42	* testsuite/aclocal.m4:    and no longer use Tk.
43	* testsuite/configure:     Update testsuite bits to use TEA info.
44	* testsuite/configure.in:
45	Update expect to version 5.45
46
47	* Dbg.c: account for removal of tcldbgcf.h
48	* DbgMkfl.in, Dbgconfig.in, Dbgconfigure, DbgpkgInd.in (removed):
49	* tcldbgcf.h.in (removed): removed Dbg debugger subcomponent as it
50	no longer built and debugger functionality is included in expect
51	library and binary
52
53	* pty_termios.c: add HAVE_STRING_H include string.h
54	* exp_trap.c: add HAVE_STRING_H include string.h
55
56	* expectk.man, exp_main_tk.c (removed): expectk no longer
57	built. Use tclsh with package require Tk and Expect instead.
58
59	* tests/all.tcl: add package require Expect
60
61	* example/archie, example/autoexpect: minor code cleanup
62	* example/tkpasswd, example/tknewsbiff, example/tkterm: use
63	package require statements in lieu of expectk
64
652009-11-03  Andreas Kupries  <andreask@activestate.com>
66
67	* exp_command.c (Exp_SpawnObjCmd): [Expect SF Bug 2891422]. Fixed
68	  error message when the command to spawn could not be executed.
69	  Tried to use a Tcl_Obj* as argument for a %s. Replaced with the
70	  correct char* variable. Thanks to Elchonon Edelson
71	  <eee@users.sourceforge.net> for the report.
72	  [Expect SF Bug 2891563] Ditto for the same type of bug when
73	  emitting error 'usage: -ignore unknown signal name'. The
74	  remainder of the exp_error calls are ok however.
75
76	* configure.in: Bumped version to 5.44.1.15.
77	* configure: Regen'd, autoconf 2.59.
78
792009-07-14  Andreas Kupries  <andreask@activestate.com>
80
81	* exp_clib.c (TclRegComp): Fixed memory leak reported by
82	  <ettlmartin@users.sourceforge.net> in [Expect SF Bug 2814263].
83
842009-06-22  Andreas Kupries  <andreask@activestate.com>
85
86	* pty_unicos.c (pty_stty): Fixed missing double-quotes for sprint
87	  formatting strings. Thanks to <ettlmartin@users.sourceforge.net>
88	  for the report, i.e. [Expect SF Bug 2809496].
89
902009-06-18  Andreas Kupries  <andreask@activestate.com>
91
92	* exp_command.c (Exp_LogFileObjCmd): Fix argument parsing logic
93	  error in the log_file command breaking the use of options -open
94	  and -leaveopen. Applied patch supplied by Andy Belsey
95	  <Andrew.Belsey@Sun.COM>. With thanks for both the analysis of
96	  the problem and the patch.
97
98	* configure.in: Bumped version to 5.44.1.14.
99	* configure: Regen'd, autoconf 2.59.
100
1012009-05-27  Andreas Kupries  <andreask@activestate.com>
102
103	* exp_tty.c (Exp_SttyCmd, Exp_SystemCmd): Applied patch by
104	  Reinhard Max (max@suse.de) fixing buffer-overflows in the 'stty'
105	  command due to an off-by-one error in the buffer size. See the
106	  bugs https://bugzilla.novell.com/show_bug.cgi?id=506873
107	  and  https://bugzilla.novell.com/show_bug.cgi?id=501291
108
109	* configure.in: Bumped version to 5.44.1.13.
110	* configure: Regen'd, autoconf 2.59.
111
1122009-05-06  Andreas Kupries  <andreask@activestate.com>
113
114	* retoglob.c: Accepted the patch by Mike Cumings
115	  <mcumings@users.sourceforge.net> fixing [Expect SF Bug 13179].
116	  The updated code checks a (?...) sequence that it contains only
117	  ARE options before processing it as such. This prevents the
118	  misinterpretation of non-capturing paren groups as ARe options
119	  with subsequent segmentation fault.
120
121	* configure.in: Bumped version to 5.44.1.12.
122	* configure: Regen'd, autoconf 2.59.
123
1242008-09-30  Andreas Kupries  <andreask@activestate.com>
125
126	* configure.in: Bumped version to 5.44.1.11.
127	* configure: Regen'd, autoconf 2.59.
128
129	* exp_command.c (Exp_OverlayObjCmd): Fixed [Expect SF Bug 2127456]
130	  reported by <eee@users.sourceforge.net>, with thanks. Changed
131	  retrieval of command from objv[0] (== 'overlay' itself), to
132	  objv[i] containing the actual user command.
133
134	* expect.c (string_case_first, string_first, eval_case_string):
135	  Applied patch supplied by Andy Belsey <Andrew.Belsey@Sun.COM>
136	  fixing the seg.fault in 'expect -exact'. With thanks for both
137	  the analysis of the problem and the patch. See also [Expect SF
138	  Bug 2114547].
139
1402008-08-28  Andreas Kupries  <andreask@activestate.com>
141
142	* exp_trap.c (tophalf): Fixed inverted condition setting the
143	  interpreter used for trap handling to NULL, causing a crash when
144	  trying to handle ^C. This fixes [SF Bug 1757471] reported by
145	  Matthias Kraft <matzek@users.sourceforge.net>.
146	* configure.in: Bumped version to 5.44.1.10.
147	* configure: Regen'd, autoconf 2.59.
148
1492008-08-18  Jeff Hobbs  <jeffh@ActiveState.com>
150
151	* exp_main_sub.c (exp_interpreter): cleaner handling of commandPtr
152	to prevent crash. (das)
153
1542008-06-03  Andreas Kupries  <andreask@activestate.com>
155
156	* exp_glob.c (Exp_StringCaseMatch2): Fixed bug in the handling of
157	  glob classes, see [SF Bug 1873404]. The code tried to match the
158	  closing bracket of a class in the input because it was not
159	  properly skipped after the class was matched successfully.
160	  Additional trace output added.
161	* configure.in: Bumped version to 5.44.1.9.
162	* configure: Regen'd, autoconf 2.59.
163
1642008-05-05  Andreas Kupries  <andreask@activestate.com>
165
166	* exp_pty.c: Minimal ansification of function definitions to match
167	  them to their prototypes where promoted types are otherwise
168	  causing a mismatch for some compilers, like AIX in 64bit mode.
169	* configure.in: Bumped version to 5.44.1.8.
170	* configure: Regen'd, autoconf 2.59.
171
1722008-04-03  Andreas Kupries  <andreask@activestate.com>
173
174	* configure.in: Bumped version to 5.44.1.7.
175	* configure: Regen'd, autoconf 2.59.
176
177	* The following set of changes was sent our way by Reinhard Max
178	  <max@tclers.tk>.
179
180	* exp_command.c: Fixed more compiler warnings, and started
181	* exp_command.h: to ansify the code base, beginning with
182	* exp_inter.c: the introduction of proper function prototypes.
183	* exp_main_exp.c:
184	* exp_pty.h:
185	* exp_tty.c:
186	* exp_tty.h:
187	* exp_win.c:
188	* expect.c:
189	* pty_termios.c:
190	* retoglob.c:
191
1922008-04-03  Andreas Kupries   <andreask@activestate.com>
193
194	* configure.in: Bumped version to 5.44.1.6.
195	* configure: Regen'd, autoconf 2.59.
196
197	* The following set of changes was sent our way by Reinhard Max
198	  <max@tclers.tk>.
199
200	* configure.in: Fixed checking of stty on linux, do not restrict
201	  to specific cpu's. Further try with stdin, and stdin redirected
202	  to /dev/tty when determining if stdout is read.
203
204	* testsuite/configure.in: Brought up to TEA 3.5.
205	* testsuite/aclocal.m4: New file, to import the TEA definitions.
206
207	* Dbg.c: Added missed CONST in declaration and definition of
208	  'debugger_trap'.
209
210	* exp_command.c: Fixed pointer aliasing trouble with
211	  'Tcl_DetachPids', and added the missing initialization of the
212	  command string in the 'overlay' command.
213
214	* expect.c: Fixed missing initialization of 'simple_start' element
215	  of 'ecase'.
216
217	* exp_inter.c: Fixed bogus use of 'slen' in 'intMatch'. The
218	  relevant string is Tcl_Unichar, not Utf.
219
220	* Makefile.in: Replaced bogus INSTALL_ROOT with DESTDIR, and added
221	  missing DESTDIR references to the target for the installation of
222	  the manpages.
223
2242008-02-27  Andreas Kupries  <andreask@activestate.com>
225
226	* expect.c: Fixed refcounting error when parsing a single expect
227	* configure.in: argument into a list of patterns and
228	* configure: actions. Updated the version number to 5.44.1.5.
229	* Dbg.c: Added missing 'return TCL_OK' to debugger_trap.
230
2312007-12-13  Jeff Hobbs  <jeffh@ActiveState.com>
232
233	* exp_log.c (expStdoutLogU): correct which buf is output.
234
235	* exp_command.c (Exp_SendLogObjCmd): fix '--' handling
236	(Exp_SendObjCmd): fix '--' handling to expect last argument
237
2382007-09-24  Andreas Kupries  <andreask@activestate.com>
239
240	* exp_inter.c: Changed inclusion of tcl.h to tclInt.h to get the
241	* expect.c: definition of TCL_REG_BOSONLY, which was moved to that
242	  header in Tcl 8.5. Ditto for expect.c, for the macro
243	  TclUtfToUniChar (was a function in 8.4). Expect now compiles
244	  again for both Tcl 8.4 and 8.5.
245
246	* configure.in: Bumped version to 5.44.1.4.
247	* configure: Regenerated.
248
2492007-09-19  Andreas Kupries  <andreask@activestate.com>
250
251	* retoglob.c (EMITC): Keep the characters '^' and '$' quoted as
252	  well, we do not wish to invoke their special interpretation by
253	  the Expect glob matcher.
254	* configure.in: Bumped version to 5.44.1.3.
255	* configure: Regenerated.
256
2572007-08-09  Andreas Kupries  <andreask@activestate.com>
258
259	* retoglob.c: We had ExpChopNested and ExpBackslash locally
260	  ansified (prototypes) to avoid a compiler error on AIX (type
261	  promotion trouble). This now integrated into the mainline
262	  sources, conditional to AIX.
263
264	* expect.c (Exp_TimestampObjCmd): Fixed argument processing broken
265	  by objc,objv conversion. Tried to use command name as the
266	  argument for -seconds. Also did not detect when one argument to
267	  many was specified.
268
269	* configure.in: Bumped version to 5.44.1.2.
270	* configure: Regenerated.
271
2722007-07-17  Andreas Kupries <andreask@activestate.com>
273
274	* expect.c: Circumvented problems with the C compiler by use of a
275	  temporary variable to hold the unicode pointer of a glob
276	  pattern. The computed pattern length given to
277	  Exp_StringCaseMatch was bogus.
278
279	* exp_glob.c: Added tracing of the glob matcher internals (Can be
280	  enabled by define EXP_INTERNAL_TRACE_GLOB). Fixed bug in a guard
281	  condition in the optimized handling of '*'. The bad condition
282	  caused the code to miss possible matches at the beginning of the
283	  input (first char).
284
285	* tests/expect.test: Added tests which check the glob matcher and
286	  RE gate keeping.
287
288	* configure.in: Bumped to 5.44.1.1 to separate this from the
289	  regular 5.44.1 sources.
290	* configure: Regenerated.
291
2922007-07-12  Andreas Kupries  <andreask@activestate.com>
293
294	* expect.c: Found bugs mismanaging input and pattern in the
295	* exp_glob.c: updated glob matcher. We cannot check for '\0'
296	  anymore to find the end of the string, these are counted
297	  arrays now. Rewritten to use sentinel pointers.
298
2992007-07-11  Andreas Kupries  <andreask@activestate.com>
300
301	* exp_chan.c: Converted the buffering system from UTF-8 in Tcl_Obj
302	* exp_command.h: to UTF-16 C-array, to avoid the repeated conversion
303	* expect.c: of the input from utf-8 to utf-16. Updated the glob
304	* exp_glob.c: matching code to use the same tricks for speed which
305	* exp_inter.c: are used by the Tcl core. Extended the regexp
306	* exp_log.c: matching path with a glob matcher which uses a gate
307	* exp_log.h: keeper glob pattern to weed out most non-candidates
308	* retoglob.c (New file): in a speedy manner. Regexp matching now
309	  has to be done only for the small number of candidates
310	  identified by the gate keeper. Overall speed improvement as glob
311	  matching is faster than regexp matching. Added code translating
312	  regular expressions into their gate keeper glob pattern.
313
314	* Dbg.c: Converted the lot of argc,argv based command
315	* exp_command.c: implementations over to objc,objv.
316	* expect.c:
317	* exp_main_sub.c:
318
319	* Dbg.c: Cleaned up the direct access to interp->result,
320	* exp_command.c: replaced with the proper functions and
321	* expect.c: Tcl_Obj's.
322	* exp_main_exp.c:
323	* exp_main_sub.c:
324	* exp_main_tk.c:
325	* exp_prog.h:
326	* exp_trap.c:
327	* exp_tty.c:
328	* exp_win.c:
329	* exp_win.h:
330
331	* tests/cat.test: Added proper 'package require Expect'
332	* tests/expect.test: to the test setup code (JeffH).
333	* tests/logfile.test:
334	* tests/pid.test:
335	* tests/send.test:
336	* tests/spawn.test:
337	* tests/stty.test:
338
339	* exp_command.c: Reformatted overlong lines, whitespace,
340	* expect.c: comments. Added braces to some if-constructs.
341	* exp_inter.c: Reworked if-constructs interleaved with
342	* exp_tty.c: #if for better formatting in emacs.
343
344	* Dbg.c: Added note about unhandled cases in a switch.
345	* exp_chan.c: Added code to suppress unhandled warning for
346	  unreachable code.
347	* exp_command.c: Removed unused variable.
348	* expect.c: Removed unused static function, added code to suppress
349	  unhandled warning for unreachable code.
350
351	* exp_command.c: Fixed typo in comment.
352
3532007-06-28  Andreas Kupries <andreask@activestate.com>
354
355	* Merged changes from the official version 5.44.1 of expect into
356	  the SF sources. See the details below.
357
358	  --------------------
359	  Marius Schamsula <marius173@mchsi.xcom> reported tclconfig
360	  missing, evidentally for new TEA.
361
362	  Lots of massaging to fix TEAification of Makefile and configure
363	  including that version numbers will now be full three part.
364
365	  Daniel Wong <danielwong@berkeley.xedu> noted the home page
366	  should note that Wikipedia has a very readable entry for Expect.
367
368	  Andre Alves <aalves@escloyalty.xcom> noted passmass needed some
369	  fixes to handle Solaris 9 passwd prompt changes.
370
371	  Andreas fixed several things: changes to better support TEA, fix
372	  debugger interaction with nonblocking mode, and probably other
373	  things I'm overlooking.
374
375	  Martin Dietze <di@fh-wedel.xde> noted that autoconf 2.59 is
376	  confused by C comment after undefs in expect_cf.h.in.
377
378	  Added additional code to unbuffer -p so that if a process
379	  earlier in the pipeline exits, unbuffer attempts to recover any
380	  remaining output from the spawned proc before unbuffer itself
381	  exits.
382
383	  Jeffrey Hobbs noted that once stty was called, a bg'd script
384	  would be suspended at exit.  Turned out to be overaggressive
385	  code in stty that recorded what 'damage' the user might have
386	  caused when calling stty in the first place.
387
388	  Jens Petersen provided patch to make setpgrp configure better on
389	  some Linux systems.
390
391	  Added example/getpassck script to test for getpass bug.
392
393	  multixterm had debugging stuff leftover ("hello").
394	  --------------------
395
3962006-02-27  Andreas Kupries <andreask@activestate.com>
397
398	* exp_main_sub.c: Added command 'exp_configure' for magic configuration.
399	* exp_command.c:  Accepts option -strictwrite. Default is 0, ignoring
400	* exp_chan.c:     write errors (compatible to 5.41). Setting to 1 re-
401	* expect_tcl.h:   activates 5.42 behaviour.
402
4032006-01-25  Jeff Hobbs  <jeffh@ActiveState.com>
404
405	* tclconfig/tcl.m4, configure: Fix LD_SEARCH_FLAGS setting in tcl.m4
406
407	* example/unbuffer: whitespace police
408
409	* example/beer.exp: brace exprs
410
411	* expect.man: use clock instead of exec date, minor nroff fixes.
412
4132006-01-24  Andreas Kupries <andreask@activestate.com>
414
415	* tclconfig/tcl.m4: Updated to TEA 3.5
416	* configure.in:     Ditto.
417	* configure:        Regenerated.
418
4192006-01-10  Jeff Hobbs  <jeffh@ActiveState.com>
420
421	* tests/expect.test: ensure iso8859-1 for /tmp/null (steffen).
422
4232005-09-19  Andreas Kupries <andreask@activestate.com>
424
425	* exp_chan.c (ExpOutputProc): Added guard to intercept and ignore
426	  empty write operations, i.e. operations trying to write zero
427	  bytes.
428
4292005-09-09  Andreas Kupries <andreask@activestate.com>
430
431	* exp_chan.c (ExpBlockModeProc): No, stdin is not ok (See last
432	  entry). Fixed.
433
4342005-07-07  Andreas Kupries <andreask@activestate.com>
435
436	* exp_chan.c (ExpBlockModeProc): [Expect SF Bug 1108551]. Excluded
437	  manipulation of the blocking status for stdin/stderr. This is
438	  handled by the Tcl core itself and we must absolutely not pull
439	  the rug out from under it. The standard setting to non-blocking
440	  will mess with the core which had them set to blocking, and
441	  makes all its decisions based on that assumption. Setting to
442	  non-blocking can cause hangs and crashes. Stdin is ok however,
443	  apparently.
444
445	  This problem was introduced at '2004-06-14'.
446
4472005-06-22  Andreas Kupries <andreask@activestate.com>
448
449	* exp_chan.c:    Fixed bug causing crash of expect on exit when a
450	* exp_command.c: Tcl channel is used with -(leave)open more than
451	* exp_command.h: once. It tried to close such channels multiple
452	  times, going through already freed memory. Added data structures
453	  to track and refcount all such channels, to close them only when
454	  the last user goes away.
455
4562005-06-09  Andreas Kupries <andreask@activestate.com>
457
458	* Makefile.in:  Upgraded build system to TEA 3.2.
459	* configure.in:
460	* config.guess:
461	* config.sub
462	* exp_main_sub.c:
463	* aclocal.m4:
464
4652005-03-29  Andreas Kupries <andreask@activestate.com>
466
467	* exp_chan.c: Fixed problem with debugger introduced at '2004-06-14'.
468	* tcldbg.h:   For a nonblocking stdin the debugger blowed up on the
469	* Dbg.c:      empty reads it could get, exiting the application. I
470	              guess that this was an implicit 'panic'. Fix:
471
472		      - Split ExpBlockmodeProc into high- and lowlevel
473		        code, the latter for use by the debugger. The
474		        high-level code tells the debugger which state
475		        stdin is in (doing this explicitly because if
476		        FIONBIO is used it is not possible to query the fd
477		        directly, and I saw no reason to #ifdef for fcntl
478		        which can).
479
480		      - Debugger now exports a function for use by the
481		        blockmode proc, and in each interaction it checks
482		        for nonblocking input, forces blocking if
483		        necessary. At the end of each interaction the true
484		        mode is restored. Both operations use the
485		        low-level blockmode code.
486
4872005-03-07  Jeff Hobbs  <jeffh@ActiveState.com>
488
489	* exp_tty.c (Exp_SttyCmd): fix from Libes that controlling
490	terminal check example (book p372) by restricting set of
491	exp_ioctled_devtty variable.
492
4932005-02-15  Andreas Kupries <andreask@activestate.com>
494
495	* Merged changes from the official versions 5.42.1 and 5.43.0 of
496	  expect into the SF sources. See the details below.
497
498	  --------------------
499	  Martin Forssen <maf@tkrat.xorg> fixed bug in ExpOutputProc
500	  that caused misbehavior during partial writes.
501
502	  Someone noted that gets stdin behaves differently (returns -1
503	  immediately) from tclsh because with 5.42, stdin is unblocked by
504	  defaults.
505
506	  Robroy Gregg <robroy@armory.xcom> noted that expect_background
507	  ignores timeouts.  Added to documentation.
508
509	  Jens Peterson <peterson@redhat.xcom> provided patch for
510	  "mkpasswd -vo".
511
512	  Gary Bliesener <gary.bliesener@nextel.xcom> noted that
513	  multixterm failed on his system which had an old Tk that didn't
514	  support the Tk package.
515
516	  Removed beta designation.
517
518	  Daniel A. Steffen <steffen@ics.mq.edu.xau> provided patch for
519	  MacOS to avoid panic-redefinition.
520	  --------------------
521
5222005-01-21  Andreas Kupries <andreask@activestate.com>
523
524	* exp_inter.c: Changed all uses of 'time(3)' to Tcl_GetTime. IOW
525	* expect.c:    go through the abstract core API instead of
526	               directly acessing OS time. This makes the code
527	               dependent on Tcl 8.4, as Tcl_GetTime was not public
528	               before. See TIP #73 for its introduction into the
529	               public API. As for the reason behind _this_ change
530	               see TIP #233. Our change here now causes Expect to
531	               be automatically in sync with any virtualization
532	               set up in the core.
533
5342004-08-19  Andreas Kupries  <andreask@activestate.com>
535
536	* exp_chan.c (ExpOutputProc): Added code posted by Don on
537	  c.l.t. to handle interrupted system calls (EAGAIN).
538
5392004-07-15  Andreas Kupries  <andreask@activestate.com>
540
541	* Merged changes from the official version 5.42b0 of expect into
542	  the SF sources. See details below.
543
544	  --------------------
545	  Alexander Doktorovich <alexander.doktorovich@ericsson.xcom>
546	  wanted to use Expect as a filter.  This is possible but 'too
547	  hard'.  To make it easier, added close_on_eof command to control
548	  whether expect/interact automatically close the channel on eof.
549	  This should simplify/enable other scripts.
550
551	  Kurt Heberlein <kurth@3pardata.xcom> noted that Expect would
552	  hang. Andreas tracked it down to a change in Tcl such that when
553	  Tcl had data left in its buffers, it would check for more data
554	  rather than returning what it had to Expect first.  If no data
555	  was forthcoming then Tcl would hang because the pty driver runs
556	  in blocked mode.  Recoded to use nonblocking mode.
557
558	  Yi Luo <yluo@brocade.xcom> noted that multixterm xterms were
559	  reporting the parent's X window ids (via the WINDOWID env
560	  variable) instead of the new ones.
561
562	  Dick Van Deun <dirk@dinf.vub.ac.xbe> noted that kibitz expects
563	  to find write in /bin but it is in /usr/bin on Slackware.  Seems
564	  safe to drop the prefix.
565
566	  Steve Lee <steve@tuxsoft.xcom> noted that building Expect failed
567	  on Linux when built from scratch because stty ends up in
568	  /usr/local/bin rather than the assumed /bin.  Added code to
569	  support this.
570	  --------------------
571
5722004-06-14  Andreas Kupries  <andreask@activestate.com>
573
574	* exp_chan.c: Integrated the block mode proc I got by mail from
575	  Don Libes into the channel driver. This fixes an error with
576	  expect hanging on some input if the situation is just
577	  right^Hwrong. Basically if the buffers in driver, Tcl IO core
578	  and Expect itself are aligned just so it can cause Expect to
579	  block in all call to the OS for more data even if all the data
580	  it needs is in ts buffers. Because the driver is blocking and
581	  the Tcl core was told that it can run in non-blocking mode. with
582	  the block mode proc in place the driver knows that it should be
583	  non-blocking and is able to tell this to the OS as well. The
584	  call to the OS still happens, but is not blocking anymore, and
585	  so the problem is gone.
586
587	  A number of incompat changes in the Tcl IO core to work around
588	  this problem in Expect will be removed now.
589
5902004-06-03  Andreas Kupries  <andreask@activestate.com>
591
592	* aclocal.m4 (TCLHDIRDASHI): Extended with path to unix headers as
593	  well.
594	* expect_tcl.h: Added inclusion of <stdio.h>.
595	  Both changes required for Expect to compile against Tcl 8.5
596	  after the header reform.
597	* configure: Regenerated.
598
5992004-05-19  Andreas Kupries  <andreask@activestate.com>
600
601	* Merged changes from the official version 5.41 of expect into the
602	  SF sources. See details below.
603
604	  --------------------
605	  Simon Taylor <simon@unisolve.com.xau> provided fix for interact
606	  -o which was completely broken by 5.40.1.
607
608	  Added scroll support to official tkterm.  Copied all fixes
609	  from/to term_expect to/from tkterm.
610
611	  Kiran Madabhushi <maskiran@hotmail.xcom> encountered interact
612	  diagnostics incorrectly pointing to expect_background.  Also,
613	  found multiple -o flags behaving unexpectedly.  Added diag.
614
615	  Kristoffer Eriksson <ske@pkmab.xse> noted typo in SIMPLE code in
616	  exp_inter.c.  However, this is extremely unlikely to affect any
617	  machines.
618
619	  Reinhard Max <max@suse.xcom> noted that "make test" failed when
620	  run in the background.  The log testcase was testing the
621	  send_tty command.  Added code in both Expect and in the test to
622	  handle this.
623	  --------------------
624
6252004-02-25  Andreas Kupries  <andreask@activestate.com>
626
627	* Merged changes from the official version 5.40 of expect into the
628	  SF sources. See details below. Partially already done (Rich
629	  Kennedy's patch).
630
631	  --------------------
632	  Eric Raymond <esr@snark.thyrsus.xcom> provided troff-related
633	  fixes for the expect, lib, and dislocate man pages.
634
635	  Rich Kennedy <rickenne@cisco.xcom> noted a bug having to do
636	  with our caching of whether we have registered a filehandler.
637	  This broke when Tcl was setting a handler on the same file.
638
639	  Ken Pizzini <ken.pizzini@explicate.xorg> provided patch for
640	  leak in spawn error handling.
641
642	  Pete Lancashire <plancashire@columbia.xcom> noted autopasswd
643	  example broke on Solaris which capitalized prompts.
644	  --------------------
645
6462003-10-20  Andreas Kupries  <andreask@activestate.com>
647
648	* exp_event.c (exp_get_next_event): Applied a patch made by Don
649	  Libes in response to a bug report posted to news:comp.lang.tcl
650	  by Rich Kennedy <rickenne@cisco.com>. Patch was posted to c.l.t
651	  too.
652
653	  > Subject: Re: 2nd interact does not grab stdin
654	  > Date: 17 Oct 2003 15:33:38 -0400
655	  > From: Don Libes <libes@nist.gov>
656	  > Organization: National Institute of Standards and Technology
657	  > Newsgroups: comp.lang.tcl
658	  > References: <3F86D6F8.E535CBDE@cisco.com>
659
660	  > It's a bug - some overaggressive caching regarding stdin.  A fix
661	  > appears below.  (You should also be able to avoid the problem by
662	  > replacing the gets with expect_user.)
663
664	  > Don
665
666	  > Rich Kennedy <rickenne@cisco.com> writes:
667
668	  > > Hi,
669	  > >
670	  > >  The following little expect script gets in trouble with second
671	  > >  'interact' statement. The 'less' program does not get stdin
672	  > >  so it doesn't respond to typed characters...
673	  > >
674	  > >  Is there something that must be done after the 1st interact to
675	  > >  allow the second to work correctly? (Note, you have to run
676	  > >  as a script because it works correctly if you type the commands
677	  > >  interactively to expect)
678	  > >
679	  > > 	#!/usr/local/bin/expect
680	  > >
681	  > > 	gets stdin a
682	  > > 	spawn less file1
683	  > > 	interact
684	  > >  	wait
685	  > > 	gets stdin junk
686	  > > 	spawn less file2
687	  > > 	interact
688	  > >         wait
689	  > >
690	  > >  Thanks
691	  > >
692	  > > Rich Kennedy
693
6942003-09-05  Andreas Kupries  <andreask@activestate.com>
695
696	* Merged changes from the official version 5.39 of expect into the
697	  SF sources. See details below. Partially already done.
698
699	  --------------------
700	  Poorva Gupta <poorva@cup.hp.xcom> noted that grantpt/unlockpt
701	  order was backward.  Strange that this was never a prob before!
702
703	  Eric Raymond <esr@snark.thyrsus.xcom> provided a troff-related
704	  fix for the multixterm man page.
705
706	  Nicolas Roeser <n-roeser@gmx.xnet> noted confusion with md5 so I
707	  made the Expect page more explicit about which file that hash
708	  was based on.
709
710	  Josh Purinton noted that earlier fix wasn't quite right.  Exit
711	  on INT/TERM should cause Expect to exit with signal embedded in
712	  status.  He also requested I obfuscate email addresses in this
713	  file.
714
715	  Guido Ostkamp <Guido.Ostkamp@t-online.xde> and Igor Sobrado
716	  <sobrado@string1.ciencias.uniovi.xes> noted that fixline1
717	  rewrote scripts to be expect scripts even if they were expectk
718	  scripts.
719
720	  Dirk Petera <dirkpetera@yahoo.xcom> noted that any_spawn_id used
721	  to work but did no longer.  Looks like a bug left over from the
722	  the I18L conversion.  Fixed.
723
724	  Steve Szabo noted exp_log_file -open channel failed.  Fixed.
725
726	  Fixed bug from 5.31 that prevent stty from returning messages
727	  from underlying program.
728
729	  Thomas Dickey <dickey@herndon4.his.xcom> noted that ncurses
730	  ignores 2-char term names because of, well, poor assumptions and
731	  coding.  Changed tkterm to use longer names.
732
733	  Heath Moore <hmoore@systran.xcom> noted that exp_clib could lock
734	  up if remtime happened to be precisely 0.  Recoded to avoid.
735
736	  At request of Per Otterholm <otterholm@telia.xcom>, wrote script
737	  to read from stdin and echo passwords (exercise 9 in Tk chapter
738	  of Expect book).  Added to example directory as passwdprompt.
739
740	  Josh Purinton <josh@purinton.xorg> pointed out that by default,
741	  SIGINT/TERM should cause expect's return status to be 1, not 0.
742
743	  Paul Reithmuller <paul.reithmuller@eng.sun.xcom> noted that
744	  unbuffer shouldn't postprocess its output.  Added stty_init.
745
746	  Mordechai T. Abzug <morty@sanctuary.arbutus.md.xus> noted that
747	  log_file wasn't recording -append status.
748
749	  James Kelly <macubergeek@comcast.xnet> noted weather example
750	  needed new source.
751
752	  Dimitar Haralanov <mitko@tahoenetworks.xcom> noted that interact
753	  dumped core with interact { timeout 1 }
754	  --------------------
755
7562003-06-16  Andreas Kupries  <andreask@activestate.com>
757
758	* exp_command.c: Applied patch provided on c.l.t., by Don Libes
759	  <libes@nist.gov> in response to a bug report by Dirk Petera
760	  <dirkpetera@yahoo.com> in same place. See thread reference
761	  below:
762
763	  http://groups.google.ca/groups?threadm=4791f5a6.0305250619.1a660299%40posting.google.com
764
7652003-05-08  Andreas Kupries  <andreask@activestate.com>
766
767	* exp_clib.c (expectv): Applied patch provided on c.l.t., by Don
768	  Libes <libes@nist.gov> in response to a bug report by "Heath
769	  Moore" <hmoore@systran.com> in same place:
770
771	  > Regarding expect 5.38...
772	  >
773	  > I'm using libexpect on RedHat 8.0 to communicate via telnet,
774	  > and am having problems with it locking up instead of timing
775	  > out.  Causing traffic during the lockup breaks the lockup.  I
776	  > looked at the sources, and think I may have found the reason.
777	  >
778	  > It appears as though i_read can be called with remtime== 0,
779	  > which means do > one read() and return without using alarm(),
780	  > even when exp_timeout is non-zero.  This would happen if
781	  > i_read were to return after receiving non-matching data when
782	  > end_time == current_time.  The subsequent i_read would then
783	  > wait until it received data.
784
7852003-02-17  Andreas Kupries  <andreask@activestate.com>
786
787	* Makefile.in:
788	* configure.in: Removed the check of configure against
789	  configure.in and Makefile.in. It is a hassle to deal with when
790	  trying to build straight from CVS, making unsupervised automatic
791	  builds difficult
792
7932003-02-14  Andreas Kupries  <andreask@activestate.com>
794
795	* configure.in:   Made expect aware of tcl stubs. Derived from the
796	* exp_command.h:  patches to expect done by Steve Landers
797	* exp_command.c:  <stevel@digital-smarties.com>. Modifications:
798	* exp_main_sub.c  No global cmdinfo structures for 'close' and
799	* exp_main_exp.c: 'return'. Made this per-interpreter information
800	* exp_main_tk.c:  as it should be. Using interp assoc data for this.
801
802	NOTE: stubs is not default, but has to be activated via '--enable-stubs'.
803
804	* configure:      Regenerated.
805
8062003-02-14  Andreas Kupries  <andreask@activestate.com>
807
808	* exp_chan.c (exp_close_all): Save the nextPtr in a local variable
809	  before calling 'exp_close' as 'expStateFree' can be called from
810	  it under some circumstances, possibly causing the memory
811	  allocator to smash the value in 'esPtr'.
812
8132003-02-03  Andreas Kupries  <andreask@activestate.com>
814
815	* exp_log.c (expLogChannelOpen): Fixed the bug reported on
816	  comp.lang.tcl by Mordechai T. Abzug
817	  <morty@sanctuary.arbutus.md.us>. The bugfix itself was provided
818	  by Don Libes.
819
8202002-10-09  Andreas Kupries  <andreask@activestate.com>
821
822	* exp_command.c (Exp_SpawnCmd): Tcl_GetChannelHandle expected a
823	  ClientData*, but got an int*. sizeof(int) != sizeof(ClientData)
824	  on 64bit platforms. Crashed the command on a PA-RISC 2.0 machine
825	  with --enable-64bit set. Fix: Use temp. variables of type
826	  ClientData to retrieve the fd's, and copy this into the actual
827	  variables, with a cast to int.
828
8292002-09-25  Jeff Hobbs  <jeffh@ActiveState.com>
830
831	* configure: regen'ed
832	* configure.in: use tcl_libdir in EXP_LIB_SPEC instead of
833	${INSTALL_ROOT}${exec_prefix}/lib (steffen)
834
835	* exp_main_tk.c (Tk_Init2): don't call XSynchronize on OS X.
836
8372002-08-08  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
838
839	* Merged changes from the official version 5.38 of expect into the
840	  SF sources. See details below.
841
842	* Makefile.in: Added generation of MD5 checksum for distributed
843	  archive.
844	* rftp:         Bugfix by Curt Schroeder, see HISTORY
845	* HISTORY:      Updated with new info.
846	* configure:    Updated version info.
847	* configure.in: Updated version info.
848
8492002-06-26  David Gravereaux <davygrvy@pobox.com>
850
851	* example/weather: Updated script to use rainmaker.wunderground.com
852	instead of cirrus.sprl.umich.edu.  The old service is closed.
853	Added Larry Virden's notes about how rainmaker needs reverse DNS
854	from the peer making the connection or no data can retrieved.
855	This appears to be a blind error condition.
856
8572002-06-17  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
858
859	* exp_main_tk.c: #ifdef'd definition of "matherr". This hack is
860	  not required for 8.4 anymore. But still for 8.3.
861
8622002-03-25  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
863
864	* exp_main_sub.c: Fixed typo in merge of #459646. Thanks to Hemang Lavana.
865
866 	* exp_log.c (expStdoutLogU): Merged fix for SF Bug #513382 into
867	  the HEAD (The source of the patch is "expect-sf418892-sf439042-branch").
868
869	  Use Tcl_WriteChars/Tcl_Flush instead of 'fwrite' for tcl 8.1 and
870	  beyond to enforce correct conversion of the internal UTF/8 into
871	  the external representation.
872
873	* Merged fix for SF Bug #459646 into the HEAD (The source of the
874	  patch is "expect-sf418892-sf439042-branch").
875
876	* Merged fix for SF Bug #439042 into the HEAD (The source of the
877	  patch is "expect-sf418892-sf439042-branch").
878
879	* Merged fix for SF Bug #418892 into the HEAD (The source of the
880	  patch is "expect-sf418892-sf439042-branch").
881
8822002-03-23  Don Libes  <libes@users.sourceforge.net>
883
884	* Andreas Kupries mods to provide CONST support per TIP 27 (Fixed
885	  SF Patch #525074).
886
8872002-02-25  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
888
889	* expect.c: Applied patch by Don Libes fixing improper
890	  internationalization.
891
8922002-02-21  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
893
894	* expect.man: Changed the paragraph about [exp_continue] to
895	  contain information about the flag "-continue_timer". This fixes
896	  the bug SF #520630.
897
8982002-02-08  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
899
900	* expect.man: Changed abbreviation of "-notransfer" from "-n" to
901	  "-not". "-n" is no longer unique due to the addition of
902	  "-nocase". This fixes the bug SF #514994.
903
9042002-02-07  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
905
906	* Applied patch for SF #514590 to correct behaviour of expect when
907	  expecting and send from and to bogus spawn id's.
908
9092002-01-16  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
910
911	* Resynchronization of SourceForge with Don's sources to Expect
912	  version 5.34. The changes are
913
914	  Don Porter <don.porter@nist.gov> provided package-related fixes
915	  for test suite.
916
917	  Brian Theado <brian.theado@usa.net> noted that interact's -re
918	  support broke when offsets kicked in.  Turned out that the
919	  regexp engine supports them during execution but the results are
920	  delivered RELATIVE to the offset.  (I suspect this was done
921	  due to expediency.)
922
9232001-12-05  Andreas Kupries  <andreas_kupries@users.sourceforge.net>
924
925	* exp_inter.c: Applied patch posted by Don libes to c.l.t. on his
926	  behalf to keep the SF repository in sync with his changes. Don's
927	  notes: I obviously missed the fact that although
928	  "Tcl_RegExpExecObj" supports offsets, they aren't delivered to
929	  "Tcl_RegExpGetInfo".
930
9312001-09-12  David Gravereaux <davygrvy@pobox.com>
932
933	* 'telco-tec-win32-branch' branch created.
934
9352001-08-01  Jeff Hobbs  <jeffh@ActiveState.com>
936
937	* Dbg.c (Dbg_On): fixed handling of stepping. [Bug: #446412]
938
9392000-04-26  Rob Savoye  <rob@welcomehome.org>
940
941	* pty_termios.h: Only include stropts.h if it exists, rather than
942	deciding it exists based on HAVE_PTMX.
943	* configure.in: Make sure libpt exists, rather than blindly using
944	it for all our configure tests, which then all fail. Also assume
945	our svr4 style ptys are broken, if /dev/ptmx exists, but stropts.h
946	doesn't exist.
947
9481999-08-31  Jennifer Hom  <jenn@scriptics.com>
949
950	* Makefile.in: Changed test target to source tests/all.tcl instead
951	of tests/all
952
953	* tests/README: Modified documentation to reflect the change from
954	usage of a defs file to the use of package tcltest to run the tests
955
956	* tests/all:
957	* tests/defs:
958	* tests/all.tcl:
959	* tests/cat.test:
960	* tests/expect.test:
961	* tests/logfile.test:
962	* tests/pid.test:
963	* tests/send.test:
964	* tests/spawn.test
965	* tests/stty.test: Modified test files to use package tcltest,
966	removed tests/all and tests/defs, and added tests/all.tcl
967
9681999-06-22    <stanton@scriptics.com>
969
970	* expect.c: Fixed bug in token parsing where index was not being
971	incremented properly.
972
973	* configure.in: Changed version number to 5.31.
974
975	* aclocal.m4: Fixed CY_AC_LOAD_TKCONFIG so it tests for Tk_Init
976	instead of Tk_Main (which is only a macro in 8.1 and later).  Also
977	added TCL_BUILD_LIB_SPEC to the set of flags used in this test to
978	avoid linker errors.
979
980	* Dbgconfig.in: move CY_*_TCLCONFIG tests below AC_PROG_CC so it
981	will work with gcc
982
983Thu Mar 20 14:27:45 1997  Geoffrey Noer  <noer@cygnus.com>
984
985	* configure.in: don't check if stty reads stdout for
986	i[[3456]]86-*-sysv4.2MP during config; hard code instead
987
988Tue Nov 19 09:22:08 1996  Tom Tromey  <tromey@cygnus.com>
989
990	* Makefile.in (install_shared_lib): Put else clause onto each if.
991
992Fri Nov 15 11:23:43 1996  Tom Tromey  <tromey@cygnus.com>
993
994	* Makefile.in (XCFLAGS): Use EXP_SHLIB_CFLAGS, not
995	TCL_SHLIB_CFLAGS.
996	(TCL_SHLIB_CFLAGS): Define.
997
998	* configure.in: Allow arguments to --enable-blah to work.
999	Compute and AC_SUBST EXP_SHLIB_CFLAGS.
1000	Added missing AC_MSG_CHECKING.
1001
1002Wed Oct  2 10:13:37 1996  Tom Tromey  <tromey@cygnus.com>
1003
1004	* configure: Regenerated.
1005	* configure.in (stty_reads_stdout): /bin/stty on DG/UX fails.
1006
1007Fri Sep 27 10:15:48 1996  Tom Tromey  <tromey@creche.cygnus.com>
1008
1009	* expect.c (exp_i_read): Pass interp as first arg to exp_error.
1010	* configure.in (stty_reads_stdout): /bin/stty on OSF2.0, OSF3.2,
1011	HPUX 9.X, HPUX 10.X guesses wrong, so set value explicitly.
1012
1013Mon Sep  9 10:29:32 1996  Tom Tromey  <tromey@creche.cygnus.com>
1014
1015	* configure: Regenerated.
1016	* configure.in: Added code to actually handle --with-x.
1017
1018	* configure: Regenerated.
1019	* configure.in: Don't bother looking for Tk if --with-x=no
1020	specified.
1021
1022Thu Sep  5 11:01:09 1996  Tom Tromey  <tromey@creche.cygnus.com>
1023
1024	* configure: Regenerated.
1025	* configure.in (stty_reads_stdout): AIX fails "stty" test in
1026	background, so set explicitly.  Ditto HPUX 9 and 10.
1027
1028Thu Aug 29 17:04:55 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
1029
1030	* configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1031	* configure: Regenerate.
1032
1033Mon Aug  5 12:55:06 1996  Tom Tromey  <tromey@creche.cygnus.com>
1034
1035	* Makefile.in (XCFLAGS): New macro.
1036	(CFLAGS): Define to just @CFLAGS@.
1037	(CFLAGS_INT): Use $(XCFLAGS).
1038	(expect, expect_installed, expect.tc, expectk, expectk_installed,
1039	expectk.tc): Use $(XCFLAGS).
1040
1041Mon Feb 12 23:11:38 1996  Rob Savoye  <rob@chinadoll>
1042
1043	* aclocal.m4: Fix typo of ac_cv_tkh to be ac_cv_tclh so it works
1044	on all systems.
1045	* configure, DBGconfigure, testsuite/configure: Regenerated with
1046	autoconf 2.7.
1047
1048Tue Feb  6 11:48:05 1996  Tom Tromey  <tromey@creche.cygnus.com>
1049
1050	* exp_clib.c, exp_printify.c, expect_comm.h: For Tcl 7.5 and
1051	greater, use ../compat/stdlib.h, not compat/stdlib.h.
1052
1053Tue Jan 30 12:21:37 1996  Fred Fish  <fnf@kalessin.cygnus.com>
1054
1055	* exp_regexp.c (regmatch, regrepeat): Only declare strchr if it is not
1056 	a macro.
1057
1058Mon Jan 22 11:17:06 1996  Tom Tromey  <tromey@creche.cygnus.com>
1059
1060	* configure.in: Check for -lieee, -ldl, and -ldld.
1061
1062	* Makefile.in (OFILES): Include @LIBOBJS@.
1063	(strerror.o): New target.
1064
1065	* strerror.c: New file.
1066
1067	* configure.in: Test for strerror.
1068
1069Fri Jan 19 11:08:11 1996  Tom Tromey  <tromey@creche.cygnus.com>
1070
1071	* Makefile.in (install, ${SCRIPT_LIST}, test): Find new Tcl libraries.
1072
1073Thu Jan 18 13:43:13 1996  Tom Tromey  <tromey@creche.cygnus.com>
1074
1075	* Most files: Update to expect 5.19.
1076
1077Fri Jan 12 16:22:12 1996  Tom Tromey  <tromey@creche.cygnus.com>
1078
1079	* exp_closetcl.c (exp_close_tcl_files): Skip stdin, stdout,
1080	stderr.
1081	* expect_comm.h: Declare exp_close_files_interp.
1082	* exp_command.c (exp_init_most_cmds): Set exp_close_files_interp.
1083
1084Thu Jan 11 09:43:14 1996  Tom Tromey  <tromey@creche.cygnus.com>
1085
1086	* exp_closetcl.c (exp_close_files_interp): New variable for Tcl
1087	7.5.
1088	(exp_close_tcl_files): Updated for Tcl 7.5.
1089
1090	Prototype and varargs changes:
1091	* expect.c: Don't include <varargs.h>.
1092	* Dbg.c: Copied in many defines from expect_comm.h.
1093	(print): Use new varargs defines.
1094	* exp_clib.c (exp_fexpectl): Use EXP_VARARGS_START.
1095	* expect_comm.h: Include "tclInt.h".
1096	* exp_console.c (exp_console_manipulation_failed): First arg to
1097	errorlog is char*, not FILE*.
1098	* exp_log.c (debuglog): Pass name of last argument to
1099	EXP_VARARGS_START.
1100	* expect_cf.h.in (tcl_AsyncReady): Removed define.
1101	* expect.c (Exp_ExpectGlobalCmd): Added cast.
1102	* exp_command.c (exp_i_update): First arg to exp_debuglog is
1103	* exp_poll.c (exp_get_next_event): Likewise.
1104	char*, not Tcl_Interp*.
1105	* exp_log.h: Use prototypes everywhere.  Include "expect_comm.h".
1106	* expect_tcl.h: Use EXP_VARARGS, not VARARGS.
1107	(tcl_AsyncReady): New define for Tcl 7.5.
1108
1109	* aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater.
1110	(CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater.
1111	(CY_AC_PATH_TKH): Handle Tk 4.1 and greater.
1112	(CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater.  Properly quote
1113	argument to AC_REQUIRE.
1114	* configure: Regenerated.
1115
1116Tue Jan  9 16:26:47 1996  Rob Savoye  <rob@chinadoll.cygnus.com>
1117
1118	* Makefile.in: Change SHORT_BINDIR to $prefix, rather than
1119	exec_prefix. This is only used to store the platform independant
1120	expect scripts.
1121
1122Dec 18 17:22:05 1995  Brendan Kehoe  <brendan@lisa.cygnus.com>
1123
1124        * configure.in, configure: For a solaris2 machine doing a static
1125        build, add `-ldl -lw' to avoid unresolved refs using the
1126        OpenWindows libraries.
1127
1128Wed Nov 22 08:49:01 1995  Rob Savoye  <rob@chinadollchinadoll.cygnus.com>
1129
1130	* Most files: Update to expect 5.18.1.
1131
1132Fri Nov 17 17:31:55 1995  Rob Savoye  <rob@chinadoll.cygnus.com>
1133
1134	* configure.in: Add support for SCO OpenServer. It doesn't like
1135	the trap either.
1136
1137Thu Nov 16 09:28:53 1995  Rob Savoye  <rob@chinadoll.cygnus.com>
1138
1139	* configure.in: Use $host to get the OS type rather than trying to
1140	get the host name ourselves. Use the $host to set the
1141	STTY_READS_STDOUT for hosts were the test is known to fail. It
1142	also now configures in the background.
1143	* configure.in, Dbgconfig.in, testsuite/configure.in: Use
1144	AC_PROG_CC again since Cygnus configure now does the sames thing.
1145
1146Mon Oct 30 18:16:48 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
1147
1148	* configure.in (no_tk): zero out X_PROGS if we can't find tk
1149	libraries.
1150
1151Tue Oct 24 18:25:09 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
1152
1153	* Makefile.in (X11HDIR): Changed to X11_CFLAGS.
1154	(X11_LIB_FLAGS): Changed to X11_LDFLAGS.
1155	(X11_LIB): Changed to X11_LIBS.
1156	(CPPFLAGS_SIMPLE): Use X11_CFLAGS.
1157	(expectk, expectk.tc, tk): use X11_LDFLAGS & X11_LIBS.
1158
1159	* configure.in (X11HDIR, X11_LIB_FLAGS, X11_LIB): Use X11_CFLAGS,
1160	X11_LDFLAGS, X11_LIBS.  Link X11 statically on Solaris, SunOS and
1161	HPUX.
1162
1163Thu Oct 19 20:55:54 1995  Fred Fish  <fnf@cygnus.com>
1164
1165	* Makefile.in: Remove extraneous tabs and blanks in otherwise
1166	empty lines.  That confuses older non-GNU versions of "make".
1167
1168Mon Oct  9 20:58:50 1995  Jason Molenda  (crash@phydeaux.cygnus.com)
1169
1170	* testsuite/aclocal.m4: New file.  Include ../aclocal.m4.
1171
1172Thu Aug 31 00:16:26 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1173
1174	* HISTORY, Makefile.in, aclocal.m4, exp_command.h, exp_inter.c,
1175	exp_main_tk.c, exp_pty.c, expect.c, tests/all,
1176	testsuite/Makefile.in. Update to the 5.18.0 release. Minor
1177	changes.
1178
1179Thu Aug 17 18:47:21 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1180
1181	* Most files: Update to the 5.17.7 release.
1182
1183Thu Aug  3 22:47:36 1995  Jeff Law  (law@snake.cs.utah.edu)
1184
1185	* pty_termios.c (HAVE_PTMX): Undefine if both HAVE_PTYM and
1186	HAVE_PTMX are defined (as happens for hpux10).
1187
1188Thu Jul 27 16:31:23 1995  J.T. Conklin  <jtc@cygnus.com>
1189
1190	* Makefile.in (configure): Removed rule that automatically
1191	rebuilds configure script.  Users might not have autoconf.
1192
1193Tue Jul 18 23:15:03 1995  Fred Fish  <fnf@fishbowl>
1194
1195	* expect.c (Exp_ExpectGlobalCmd):  Cast ckrealloc first arg to char*.
1196
1197Sun Jun 18 13:02:41 1995  Fred Fish  <fnf@amigalib.com>
1198
1199	* configure, configure.in (XLIBS):  When adding -lX11, also preserve
1200	the previous libraries that we went to the trouble of finding.
1201
1202Sun Jun 18 12:15:44 1995  Fred Fish  <fnf@amigalib.com>
1203
1204	* Makefile.in (exp_clib.o): Add dependencies.
1205
1206Mon May  1 16:50:22 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1207
1208	* configure.in: Also set XINCLUDES in the Makefile.
1209
1210Fri Apr 28 18:56:02 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1211
1212	* aclocal.m4: Create a clone of AC_C_CROSS called CY_C_CROSS that
1213	has better error handling in case the native compiler is hosed.
1214	* aclocal.m4: Look for tcl and tk directories as just tcl (and tk)
1215	or tcl[0-9] (and tk[0-9)] so it doesn't match the tclX
1216	release. Print an error and exit if any of the --with-{tcl,tk}*
1217	options are used and point to bogus paths. Based Tcl header search
1218	on tclInt./h rather than tcl.h.
1219	* Makefile.in: Add dependancies for back in for configure and
1220	Dbgconfigure targets.
1221
1222Mon Apr 24 16:46:01 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1223
1224	* exp_command.c, exp_event.h, exp_inter.c, exp_main_tk.c,
1225	exp_poll.c, exp_select.c, exp_simple.c, exp_tk.c, exp_trap.c,
1226	exp_tty.c, FAQ, README, HISTORY: Update to expect 5.16.3.
1227
1228Fri Apr 14 12:00:39 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1229
1230	* configure.in: Copy Dbg_cf.h to objdir, not srcdir.
1231
1232Tue Apr 11 18:52:24 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1233
1234	* aclocal.m4: Split the macros so header and library searches are
1235	seperate macros. AC_PATH_{TCL,TK} nows only calls the macros. Lots
1236	of optimization to the AC_PATH_T* macros. Supports the use of
1237	--with-tclinclude, --with-tcllib, --with-tkinclude, --with-tklib
1238	to specify alternative search dirs for tcl and tk stuff.
1239	* Makefile.in, testsuite/Makefile.in: Re-write targets for
1240	configure, Dbgconfigure so they work in an unconfigured srcdir.
1241	* configure.in: Put AC_PATH_X before AC_PATH_TK and make the TK
1242	test conditional. Fix how Dbgconfigure gets passed the Tcl header
1243	dir to use --with-PACKAGE which is much simpler. Removed the test
1244	for user override of X search paths since AC_PATH_X uses.
1245	--x-includes and --x-libraries instead.
1246	* Dbgconfig.in: Use AC_PATH_TCLH to find just the headers, and
1247	test for LynxOS.
1248	* debugger/: Remove directory. Recursive configuring is so much
1249	easier...
1250	* DbgMkfl.in, Dbg_cf.h.in, Dbg.c, Dbg.h, Dbgconfigure,
1251	Dbgconfig.in: Sigh, moved back to the top-level expect directory.
1252
1253Wed Apr  5 17:25:45 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1254
1255	* configure.in: Add a trap so the configure runs in the
1256	background.
1257
1258Thu Mar 16 16:56:08 1995  Rob Savoye  <rob@darkstar.cygnus.com>
1259
1260	* debugger: New directory for the Tcl debugger.
1261	* debugger/Dbg.c, debugger/Dbg.h, debugger/Dbg_cf.h.in: Moved from
1262	the top level expect directory so it builds standalone.
1263	* DbgMkfl.in, debugger/Makefile.in: Moved to debugger dir and
1264	renamed.
1265	* install-sh, mkinstalldirs: New files borrowed from the autoconf
1266	distribution.
1267	* aclocal.m4: New autoconf macros.
1268	* Makefile.in: Tweaked so it's recursive.
1269	* configure.in: Use new macros in aclocal.m4 rather than hunting
1270	for the Tcl and Tk stuff ourseleves.
1271	* debugger/Makefile.in: Build debugger standalone.
1272	* testsuite/Makefile.in, testsuite/configure.in: New files for
1273	autoconf support.
1274	* exp_test.c, testsuite/exp_test.c: Move test file.
1275
1276Fri Jan 13 15:30:30 1995  Ian Lance Taylor  <ian@sanguine.cygnus.com>
1277
1278	* Makefile.in (check): Pass EXPECT correctly to runtest.
1279
1280Thu Oct 20 18:04:06 1994  Rob Savoye  <rob@darkstar.cygnus.com>
1281
1282	* Makefile.in: Add X11_INCLUDE_FLAGS so top level flags get used
1283	too.
1284
1285Tue Jun 14 12:32:07 1994  David J. Mackenzie  (djm@rtl.cygnus.com)
1286
1287	* aclocal.m4: Copy from TCL directory.
1288	* configure.in: Improve checks for installed Tcl and Tk.
1289	* configure: Rebuilt.
1290
1291Tue Jun  7 13:52:34 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
1292
1293	* Makefile.in (mostlyclean, realclean): New targets.
1294
1295Wed May 18 12:21:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
1296
1297	* Makefile.in (install): Add another ``else true''.
1298
1299Fri Apr 29 16:49:36 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
1300
1301	* Makefile.in (install): Always use else in if conditional to
1302	avoid Ultrix sh bug.
1303
1304Mon Apr 11 15:22:12 1994  Rob Savoye  (rob@cirdan.cygnus.com)
1305
1306	* Upgrade to the new "official" beta release of expect 5.7.
1307
1308Wed Mar 30 17:15:28 1994  Rob Savoye  (rob@cirdan.cygnus.com)
1309
1310	* testsuite/expect.tests/expect-test.exp: Just run the new expect
1311	tests and format the outout under DejaGnu.
1312
1313Mon Mar 28 14:33:55 1994  Rob Savoye  (rob@cirdan.cygnus.com)
1314
1315	* Upgrade to expect 5.6.3.
1316
1317Thu Dec  2 16:26:54 1993  Rob Savoye  (rob@darkstar.cygnus.com)
1318
1319	* configure.in: Add tests to find Tcl and Tk headers and
1320	libraries.
1321
1322Thu Aug 19 18:26:49 1993  Rob Savoye  (rob@darkstar.cygnus.com)
1323
1324	* upgraded to version 4.7.6, add OSF/1 patches in again.
1325
1326Wed Aug 18 20:10:16 1993  Rob Savoye  (rob@rtl.cygnus.com)
1327
1328        * upgraded to version 4.7.4, add OSF/1 patches in again.
1329
1330Tue Aug 17 20:17:40 1993  Rob Savoye  (rob@darkstar.cygnus.com)
1331
1332	* pty_termios.c, exp_command.c, configure.in: Add support for
1333	using ptmx_bsd's if they exist. Only found on OSF/1. (patch
1334	applied from Gregory Depp <depp@osf.org>
1335
1336Thu Jun 10 11:36:09 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1337
1338	* exp_main.h: fix prototype for exp_cook
1339
1340Fri Jun  4 08:55:22 1993  Ian Lance Taylor  (ian@cygnus.com)
1341
1342	* Makefile.in (TCLLIB): If ../tcl/libtcl.a does not exist, use
1343	-ltcl.
1344
1345Tue May 25 14:45:12 1993  Rob Savoye  (rob@darkstar.cygnus.com)
1346
1347	* Makefile.in, configure.in: Add some support for autoconfiguring
1348	for X.
1349
1350Sun May 23 22:32:09 1993  Rob Savoye  (rob at darkstar.cygnus.com)
1351
1352	* exp_command.c: Fix so send_log still works when master is out of
1353	bounds. (ok since it doesn't get used).
1354
1355Mon May 17 19:51:52 1993  Rob Savoye  (rob@cygnus.com)
1356
1357	* configure.in: Change test for ranlib so it kicks out "true"
1358	rather than "@:" if it can't be found.
1359
1360Thu Apr 15 14:11:50 1993  Rob Savoye  (rob@cygnus.com)
1361
1362	* configure.in, Makefile.in: If using ptmx's (SVR4 style pty's)
1363	then check for libpt.a too.
1364
1365Thu Apr  8 17:13:39 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1366
1367	* Makefile.in: all doesn't depend on $(SCRIPTS).  When building
1368	$(SCRIPTS) using fixline & sources in $(srcdir), not the current
1369	directory.  When installing manpages, install from $(srcdir).
1370	Don't install like "install foo $(bindir)" but rather "install foo
1371	$(bindir)/foo".
1372
1373Mon Mar 22 23:56:29 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1374
1375	* Makefile.in: add check & installcheck targets
1376
1377Tue Mar  2 20:28:30 1993  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1378
1379	* configure.in, configure: declare SETUID to be @: instead of echo
1380
1381	* pty_termios.c: declare ptynum
1382
1383	* Makefile.in: a number of changes, including use of the AR and
1384	ARFLAGS variables, the appropriate variables for X11 (as passed
1385	down from the top level Makefile), clean up some doc lines
1386
1387Mon Mar  1 15:05:40 1993  Rob Savoye  (rob at darkstar.cygnus.com)
1388
1389	* configure.in, defs.h.in: Fixed problem for systems that think
1390	getpty() should be _getpty().
1391
1392Thu Feb 25 15:34:34 1993  Rob Savoye  (rob at darkstar.cygnus.com)
1393
1394	* exp_tty.h: Defines portable tty macros.
1395	* pty_termios.c: New file, slightly based on pty_usg.c. Uses
1396	portable macros and also supports termio.
1397	* pty_sgttyb.c: Was pty_bsd.c.
1398	* configure.in, Makefile.in, configure: autoconf support for
1399	expect.
1400
1401Sun Feb 21 17:42:28 1993  Rob Savoye  (rob at darkstar.cygnus.com)
1402
1403	* exp_tty.h: Removed and renamed the macros to use configure's.
1404
1405Wed Feb 17 18:56:36 1993  Rob Savoye  (rob at darkstar.cygnus.com)
1406
1407	* expect.c, Makefile.in: Changed SIG_FN_RETURN to RETSIGTYPE
1408	since that's what autoconf kicks out.
1409
1410Thu Dec 24 15:07:32 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1411
1412	* Makefile.in: added dummy dvi target
1413
1414Wed Dec 16 11:26:16 1992  Ian Lance Taylor  (ian@cygnus.com)
1415
1416	* inter_select.c (init_interact): if SCO is defined, use sysconf
1417	to get maxfds, rather than getdtablesize.
1418	* configure.in (*-*-sco*): Use mh-sco.
1419	* mh-sco: New file; like mh-sysv, but pass -DSCO in HDEFS.
1420
1421Tue Nov 17 14:28:20 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)
1422
1423	* config/mh-{hpux,aix,irix4,sysv*}: updated with appropriate
1424	values for the host machine (HDEFS, RANLIB, etc)
1425
1426	* configure.in: use that
1427
1428	* Makefile.in: use $(HDEFS) in compiling C files
1429
1430Sun Nov 15 21:46:16 1992  Fred Fish  (fnf@cygnus.com)
1431
1432	* Update to base 3.24.0 release, merging back in changes made
1433	by cygnus to 3.22.12 release.
1434
1435Sat Nov 14 20:16:26 1992  Fred Fish  (fnf@cygnus.com)
1436
1437	* Makefile.in (CFLAGS):  Rework use of CFLAGS to fit in better with
1438	cygnus configuration standard.
1439	* config/mh-svr4:  Removed.
1440	* config/mh-sysv4:  New file, renamed from mh-svr4.
1441	* configure.in (*-sysv4):  New configuration.
1442	* configure.in (*-sun-solaris2, *-sysv4):  Use mh-sysv4.
1443	* expect.c (sigwinch_handler):  Fix #if without any condition.
1444	* command.c, expect.c, global.h, lib_exp.c, main.c, term.h:
1445	Test for SYSV4 as well as SYSV3.
1446	* inter_select.c (sys/sysconfig.h):  Include when SYSV4 defined.
1447	* inter_select.c (init_interact):  Add sysconf call for SYSV4.
1448	* pty_svr4.c (ptsname):  Declare for SYSV4.
1449
1450Thu Oct 22 17:35:07 1992  Rob Savoye  (rob@cygnus.com)
1451
1452	* command.c: Added a "send_log" command. It only writes to a log
1453	file if one was opened by the "log_file" command.
1454
1455	* main.c: Added setbuf commands for stdin, stdout, stderr to turn
1456	off buffering.
1457
1458