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