2002-03-25 Andreas Kupries * exp_main_sub.c: Fixed typo in merge of #459646. Thanks to Hemang Lavana. * exp_log.c (expStdoutLogU): Merged fix for SF Bug #513382 into the HEAD (The source of the patch is "expect-sf418892-sf439042-branch"). Use Tcl_WriteChars/Tcl_Flush instead of 'fwrite' for tcl 8.1 and beyond to enforce correct conversion of the internal UTF/8 into the external representation. * Merged fix for SF Bug #459646 into the HEAD (The source of the patch is "expect-sf418892-sf439042-branch"). * Merged fix for SF Bug #439042 into the HEAD (The source of the patch is "expect-sf418892-sf439042-branch"). * Merged fix for SF Bug #418892 into the HEAD (The source of the patch is "expect-sf418892-sf439042-branch"). 2002-03-23 Don Libes * Andreas Kupries mods to provide CONST support per TIP 27 (Fixed SF Patch #525074). 2002-02-25 Andreas Kupries * expect.c: Applied patch by Don Libes fixing improper internationalization. 2002-02-21 Andreas Kupries * expect.man: Changed the paragraph about [exp_continue] to contain information about the flag "-continue_timer". This fixes the bug SF #520630. 2002-02-08 Andreas Kupries * expect.man: Changed abbreviation of "-notransfer" from "-n" to "-not". "-n" is no longer unique due to the addition of "-nocase". This fixes the bug SF #514994. 2002-02-07 Andreas Kupries * Applied patch for SF #514590 to correct behaviour of expect when expecting and send from and to bogus spawn id's. 2002-01-16 Andreas Kupries * Resynchronization of SourceForge with Don's sources to Expect version 5.34. The changes are Don Porter provided package-related fixes for test suite. Brian Theado noted that interact's -re support broke when offsets kicked in. Turned out that the regexp engine supports them during execution but the results are delivered RELATIVE to the offset. (I suspect this was done due to expediency.) 2001-12-05 Andreas Kupries * exp_inter.c: Applied patch posted by Don libes to c.l.t. on his behalf to keep the SF repository in sync with his changes. Don's notes: I obviously missed the fact that although "Tcl_RegExpExecObj" supports offsets, they aren't delivered to "Tcl_RegExpGetInfo". 2001-09-12 David Gravereaux * 'telco-tec-win32-branch' branch created. 2001-08-01 Jeff Hobbs * Dbg.c (Dbg_On): fixed handling of stepping. [Bug: #446412] 2000-04-26 Rob Savoye * pty_termios.h: Only include stropts.h if it exists, rather than deciding it exists based on HAVE_PTMX. * configure.in: Make sure libpt exists, rather than blindly using it for all our configure tests, which then all fail. Also assume our svr4 style ptys are broken, if /dev/ptmx exists, but stropts.h doesn't exist. 1999-08-31 Jennifer Hom * Makefile.in: Changed test target to source tests/all.tcl instead of tests/all * tests/README: Modified documentation to reflect the change from usage of a defs file to the use of package tcltest to run the tests * tests/all: * tests/defs: * tests/all.tcl: * tests/cat.test: * tests/expect.test: * tests/logfile.test: * tests/pid.test: * tests/send.test: * tests/spawn.test * tests/stty.test: Modified test files to use package tcltest, removed tests/all and tests/defs, and added tests/all.tcl 1999-06-22 * expect.c: Fixed bug in token parsing where index was not being incremented properly. * configure.in: Changed version number to 5.31. * aclocal.m4: Fixed CY_AC_LOAD_TKCONFIG so it tests for Tk_Init instead of Tk_Main (which is only a macro in 8.1 and later). Also added TCL_BUILD_LIB_SPEC to the set of flags used in this test to avoid linker errors. * Dbgconfig.in: move CY_*_TCLCONFIG tests below AC_PROG_CC so it will work with gcc Thu Mar 20 14:27:45 1997 Geoffrey Noer * configure.in: don't check if stty reads stdout for i[[3456]]86-*-sysv4.2MP during config; hard code instead Tue Nov 19 09:22:08 1996 Tom Tromey * Makefile.in (install_shared_lib): Put else clause onto each if. Fri Nov 15 11:23:43 1996 Tom Tromey * Makefile.in (XCFLAGS): Use EXP_SHLIB_CFLAGS, not TCL_SHLIB_CFLAGS. (TCL_SHLIB_CFLAGS): Define. * configure.in: Allow arguments to --enable-blah to work. Compute and AC_SUBST EXP_SHLIB_CFLAGS. Added missing AC_MSG_CHECKING. Wed Oct 2 10:13:37 1996 Tom Tromey * configure: Regenerated. * configure.in (stty_reads_stdout): /bin/stty on DG/UX fails. Fri Sep 27 10:15:48 1996 Tom Tromey * expect.c (exp_i_read): Pass interp as first arg to exp_error. * configure.in (stty_reads_stdout): /bin/stty on OSF2.0, OSF3.2, HPUX 9.X, HPUX 10.X guesses wrong, so set value explicitly. Mon Sep 9 10:29:32 1996 Tom Tromey * configure: Regenerated. * configure.in: Added code to actually handle --with-x. * configure: Regenerated. * configure.in: Don't bother looking for Tk if --with-x=no specified. Thu Sep 5 11:01:09 1996 Tom Tromey * configure: Regenerated. * configure.in (stty_reads_stdout): AIX fails "stty" test in background, so set explicitly. Ditto HPUX 9 and 10. Thu Aug 29 17:04:55 1996 Michael Meissner * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. * configure: Regenerate. Mon Aug 5 12:55:06 1996 Tom Tromey * Makefile.in (XCFLAGS): New macro. (CFLAGS): Define to just @CFLAGS@. (CFLAGS_INT): Use $(XCFLAGS). (expect, expect_installed, expect.tc, expectk, expectk_installed, expectk.tc): Use $(XCFLAGS). Mon Feb 12 23:11:38 1996 Rob Savoye * aclocal.m4: Fix typo of ac_cv_tkh to be ac_cv_tclh so it works on all systems. * configure, DBGconfigure, testsuite/configure: Regenerated with autoconf 2.7. Tue Feb 6 11:48:05 1996 Tom Tromey * exp_clib.c, exp_printify.c, expect_comm.h: For Tcl 7.5 and greater, use ../compat/stdlib.h, not compat/stdlib.h. Tue Jan 30 12:21:37 1996 Fred Fish * exp_regexp.c (regmatch, regrepeat): Only declare strchr if it is not a macro. Mon Jan 22 11:17:06 1996 Tom Tromey * configure.in: Check for -lieee, -ldl, and -ldld. * Makefile.in (OFILES): Include @LIBOBJS@. (strerror.o): New target. * strerror.c: New file. * configure.in: Test for strerror. Fri Jan 19 11:08:11 1996 Tom Tromey * Makefile.in (install, ${SCRIPT_LIST}, test): Find new Tcl libraries. Thu Jan 18 13:43:13 1996 Tom Tromey * Most files: Update to expect 5.19. Fri Jan 12 16:22:12 1996 Tom Tromey * exp_closetcl.c (exp_close_tcl_files): Skip stdin, stdout, stderr. * expect_comm.h: Declare exp_close_files_interp. * exp_command.c (exp_init_most_cmds): Set exp_close_files_interp. Thu Jan 11 09:43:14 1996 Tom Tromey * exp_closetcl.c (exp_close_files_interp): New variable for Tcl 7.5. (exp_close_tcl_files): Updated for Tcl 7.5. Prototype and varargs changes: * expect.c: Don't include . * Dbg.c: Copied in many defines from expect_comm.h. (print): Use new varargs defines. * exp_clib.c (exp_fexpectl): Use EXP_VARARGS_START. * expect_comm.h: Include "tclInt.h". * exp_console.c (exp_console_manipulation_failed): First arg to errorlog is char*, not FILE*. * exp_log.c (debuglog): Pass name of last argument to EXP_VARARGS_START. * expect_cf.h.in (tcl_AsyncReady): Removed define. * expect.c (Exp_ExpectGlobalCmd): Added cast. * exp_command.c (exp_i_update): First arg to exp_debuglog is * exp_poll.c (exp_get_next_event): Likewise. char*, not Tcl_Interp*. * exp_log.h: Use prototypes everywhere. Include "expect_comm.h". * expect_tcl.h: Use EXP_VARARGS, not VARARGS. (tcl_AsyncReady): New define for Tcl 7.5. * aclocal.m4 (CY_AC_PATH_TCLH): Handle Tcl 7.5 and greater. (CY_AC_PATH_TCLLIB): Handle Tcl 7.5 and greater. (CY_AC_PATH_TKH): Handle Tk 4.1 and greater. (CY_AC_PATH_TKLIB): Handle Tk 4.1 and greater. Properly quote argument to AC_REQUIRE. * configure: Regenerated. Tue Jan 9 16:26:47 1996 Rob Savoye * Makefile.in: Change SHORT_BINDIR to $prefix, rather than exec_prefix. This is only used to store the platform independant expect scripts. Dec 18 17:22:05 1995 Brendan Kehoe * configure.in, configure: For a solaris2 machine doing a static build, add `-ldl -lw' to avoid unresolved refs using the OpenWindows libraries. Wed Nov 22 08:49:01 1995 Rob Savoye * Most files: Update to expect 5.18.1. Fri Nov 17 17:31:55 1995 Rob Savoye * configure.in: Add support for SCO OpenServer. It doesn't like the trap either. Thu Nov 16 09:28:53 1995 Rob Savoye * configure.in: Use $host to get the OS type rather than trying to get the host name ourselves. Use the $host to set the STTY_READS_STDOUT for hosts were the test is known to fail. It also now configures in the background. * configure.in, Dbgconfig.in, testsuite/configure.in: Use AC_PROG_CC again since Cygnus configure now does the sames thing. Mon Oct 30 18:16:48 1995 Jason Molenda (crash@phydeaux.cygnus.com) * configure.in (no_tk): zero out X_PROGS if we can't find tk libraries. Tue Oct 24 18:25:09 1995 Jason Molenda (crash@phydeaux.cygnus.com) * Makefile.in (X11HDIR): Changed to X11_CFLAGS. (X11_LIB_FLAGS): Changed to X11_LDFLAGS. (X11_LIB): Changed to X11_LIBS. (CPPFLAGS_SIMPLE): Use X11_CFLAGS. (expectk, expectk.tc, tk): use X11_LDFLAGS & X11_LIBS. * configure.in (X11HDIR, X11_LIB_FLAGS, X11_LIB): Use X11_CFLAGS, X11_LDFLAGS, X11_LIBS. Link X11 statically on Solaris, SunOS and HPUX. Thu Oct 19 20:55:54 1995 Fred Fish * Makefile.in: Remove extraneous tabs and blanks in otherwise empty lines. That confuses older non-GNU versions of "make". Mon Oct 9 20:58:50 1995 Jason Molenda (crash@phydeaux.cygnus.com) * testsuite/aclocal.m4: New file. Include ../aclocal.m4. Thu Aug 31 00:16:26 1995 Rob Savoye * HISTORY, Makefile.in, aclocal.m4, exp_command.h, exp_inter.c, exp_main_tk.c, exp_pty.c, expect.c, tests/all, testsuite/Makefile.in. Update to the 5.18.0 release. Minor changes. Thu Aug 17 18:47:21 1995 Rob Savoye * Most files: Update to the 5.17.7 release. Thu Aug 3 22:47:36 1995 Jeff Law (law@snake.cs.utah.edu) * pty_termios.c (HAVE_PTMX): Undefine if both HAVE_PTYM and HAVE_PTMX are defined (as happens for hpux10). Thu Jul 27 16:31:23 1995 J.T. Conklin * Makefile.in (configure): Removed rule that automatically rebuilds configure script. Users might not have autoconf. Tue Jul 18 23:15:03 1995 Fred Fish * expect.c (Exp_ExpectGlobalCmd): Cast ckrealloc first arg to char*. Sun Jun 18 13:02:41 1995 Fred Fish * configure, configure.in (XLIBS): When adding -lX11, also preserve the previous libraries that we went to the trouble of finding. Sun Jun 18 12:15:44 1995 Fred Fish * Makefile.in (exp_clib.o): Add dependencies. Mon May 1 16:50:22 1995 Rob Savoye * configure.in: Also set XINCLUDES in the Makefile. Fri Apr 28 18:56:02 1995 Rob Savoye * aclocal.m4: Create a clone of AC_C_CROSS called CY_C_CROSS that has better error handling in case the native compiler is hosed. * aclocal.m4: Look for tcl and tk directories as just tcl (and tk) or tcl[0-9] (and tk[0-9)] so it doesn't match the tclX release. Print an error and exit if any of the --with-{tcl,tk}* options are used and point to bogus paths. Based Tcl header search on tclInt./h rather than tcl.h. * Makefile.in: Add dependancies for back in for configure and Dbgconfigure targets. Mon Apr 24 16:46:01 1995 Rob Savoye * exp_command.c, exp_event.h, exp_inter.c, exp_main_tk.c, exp_poll.c, exp_select.c, exp_simple.c, exp_tk.c, exp_trap.c, exp_tty.c, FAQ, README, HISTORY: Update to expect 5.16.3. Fri Apr 14 12:00:39 1995 Rob Savoye * configure.in: Copy Dbg_cf.h to objdir, not srcdir. Tue Apr 11 18:52:24 1995 Rob Savoye * aclocal.m4: Split the macros so header and library searches are seperate macros. AC_PATH_{TCL,TK} nows only calls the macros. Lots of optimization to the AC_PATH_T* macros. Supports the use of --with-tclinclude, --with-tcllib, --with-tkinclude, --with-tklib to specify alternative search dirs for tcl and tk stuff. * Makefile.in, testsuite/Makefile.in: Re-write targets for configure, Dbgconfigure so they work in an unconfigured srcdir. * configure.in: Put AC_PATH_X before AC_PATH_TK and make the TK test conditional. Fix how Dbgconfigure gets passed the Tcl header dir to use --with-PACKAGE which is much simpler. Removed the test for user override of X search paths since AC_PATH_X uses. --x-includes and --x-libraries instead. * Dbgconfig.in: Use AC_PATH_TCLH to find just the headers, and test for LynxOS. * debugger/: Remove directory. Recursive configuring is so much easier... * DbgMkfl.in, Dbg_cf.h.in, Dbg.c, Dbg.h, Dbgconfigure, Dbgconfig.in: Sigh, moved back to the top-level expect directory. Wed Apr 5 17:25:45 1995 Rob Savoye * configure.in: Add a trap so the configure runs in the background. Thu Mar 16 16:56:08 1995 Rob Savoye * debugger: New directory for the Tcl debugger. * debugger/Dbg.c, debugger/Dbg.h, debugger/Dbg_cf.h.in: Moved from the top level expect directory so it builds standalone. * DbgMkfl.in, debugger/Makefile.in: Moved to debugger dir and renamed. * install-sh, mkinstalldirs: New files borrowed from the autoconf distribution. * aclocal.m4: New autoconf macros. * Makefile.in: Tweaked so it's recursive. * configure.in: Use new macros in aclocal.m4 rather than hunting for the Tcl and Tk stuff ourseleves. * debugger/Makefile.in: Build debugger standalone. * testsuite/Makefile.in, testsuite/configure.in: New files for autoconf support. * exp_test.c, testsuite/exp_test.c: Move test file. Fri Jan 13 15:30:30 1995 Ian Lance Taylor * Makefile.in (check): Pass EXPECT correctly to runtest. Thu Oct 20 18:04:06 1994 Rob Savoye * Makefile.in: Add X11_INCLUDE_FLAGS so top level flags get used too. Tue Jun 14 12:32:07 1994 David J. Mackenzie (djm@rtl.cygnus.com) * aclocal.m4: Copy from TCL directory. * configure.in: Improve checks for installed Tcl and Tk. * configure: Rebuilt. Tue Jun 7 13:52:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * Makefile.in (mostlyclean, realclean): New targets. Wed May 18 12:21:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * Makefile.in (install): Add another ``else true''. Fri Apr 29 16:49:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * Makefile.in (install): Always use else in if conditional to avoid Ultrix sh bug. Mon Apr 11 15:22:12 1994 Rob Savoye (rob@cirdan.cygnus.com) * Upgrade to the new "official" beta release of expect 5.7. Wed Mar 30 17:15:28 1994 Rob Savoye (rob@cirdan.cygnus.com) * testsuite/expect.tests/expect-test.exp: Just run the new expect tests and format the outout under DejaGnu. Mon Mar 28 14:33:55 1994 Rob Savoye (rob@cirdan.cygnus.com) * Upgrade to expect 5.6.3. Thu Dec 2 16:26:54 1993 Rob Savoye (rob@darkstar.cygnus.com) * configure.in: Add tests to find Tcl and Tk headers and libraries. Thu Aug 19 18:26:49 1993 Rob Savoye (rob@darkstar.cygnus.com) * upgraded to version 4.7.6, add OSF/1 patches in again. Wed Aug 18 20:10:16 1993 Rob Savoye (rob@rtl.cygnus.com) * upgraded to version 4.7.4, add OSF/1 patches in again. Tue Aug 17 20:17:40 1993 Rob Savoye (rob@darkstar.cygnus.com) * pty_termios.c, exp_command.c, configure.in: Add support for using ptmx_bsd's if they exist. Only found on OSF/1. (patch applied from Gregory Depp Thu Jun 10 11:36:09 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * exp_main.h: fix prototype for exp_cook Fri Jun 4 08:55:22 1993 Ian Lance Taylor (ian@cygnus.com) * Makefile.in (TCLLIB): If ../tcl/libtcl.a does not exist, use -ltcl. Tue May 25 14:45:12 1993 Rob Savoye (rob@darkstar.cygnus.com) * Makefile.in, configure.in: Add some support for autoconfiguring for X. Sun May 23 22:32:09 1993 Rob Savoye (rob at darkstar.cygnus.com) * exp_command.c: Fix so send_log still works when master is out of bounds. (ok since it doesn't get used). Mon May 17 19:51:52 1993 Rob Savoye (rob@cygnus.com) * configure.in: Change test for ranlib so it kicks out "true" rather than "@:" if it can't be found. Thu Apr 15 14:11:50 1993 Rob Savoye (rob@cygnus.com) * configure.in, Makefile.in: If using ptmx's (SVR4 style pty's) then check for libpt.a too. Thu Apr 8 17:13:39 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * Makefile.in: all doesn't depend on $(SCRIPTS). When building $(SCRIPTS) using fixline & sources in $(srcdir), not the current directory. When installing manpages, install from $(srcdir). Don't install like "install foo $(bindir)" but rather "install foo $(bindir)/foo". Mon Mar 22 23:56:29 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * Makefile.in: add check & installcheck targets Tue Mar 2 20:28:30 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * configure.in, configure: declare SETUID to be @: instead of echo * pty_termios.c: declare ptynum * Makefile.in: a number of changes, including use of the AR and ARFLAGS variables, the appropriate variables for X11 (as passed down from the top level Makefile), clean up some doc lines Mon Mar 1 15:05:40 1993 Rob Savoye (rob at darkstar.cygnus.com) * configure.in, defs.h.in: Fixed problem for systems that think getpty() should be _getpty(). Thu Feb 25 15:34:34 1993 Rob Savoye (rob at darkstar.cygnus.com) * exp_tty.h: Defines portable tty macros. * pty_termios.c: New file, slightly based on pty_usg.c. Uses portable macros and also supports termio. * pty_sgttyb.c: Was pty_bsd.c. * configure.in, Makefile.in, configure: autoconf support for expect. Sun Feb 21 17:42:28 1993 Rob Savoye (rob at darkstar.cygnus.com) * exp_tty.h: Removed and renamed the macros to use configure's. Wed Feb 17 18:56:36 1993 Rob Savoye (rob at darkstar.cygnus.com) * expect.c, Makefile.in: Changed SIG_FN_RETURN to RETSIGTYPE since that's what autoconf kicks out. Thu Dec 24 15:07:32 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * Makefile.in: added dummy dvi target Wed Dec 16 11:26:16 1992 Ian Lance Taylor (ian@cygnus.com) * inter_select.c (init_interact): if SCO is defined, use sysconf to get maxfds, rather than getdtablesize. * configure.in (*-*-sco*): Use mh-sco. * mh-sco: New file; like mh-sysv, but pass -DSCO in HDEFS. Tue Nov 17 14:28:20 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * config/mh-{hpux,aix,irix4,sysv*}: updated with appropriate values for the host machine (HDEFS, RANLIB, etc) * configure.in: use that * Makefile.in: use $(HDEFS) in compiling C files Sun Nov 15 21:46:16 1992 Fred Fish (fnf@cygnus.com) * Update to base 3.24.0 release, merging back in changes made by cygnus to 3.22.12 release. Sat Nov 14 20:16:26 1992 Fred Fish (fnf@cygnus.com) * Makefile.in (CFLAGS): Rework use of CFLAGS to fit in better with cygnus configuration standard. * config/mh-svr4: Removed. * config/mh-sysv4: New file, renamed from mh-svr4. * configure.in (*-sysv4): New configuration. * configure.in (*-sun-solaris2, *-sysv4): Use mh-sysv4. * expect.c (sigwinch_handler): Fix #if without any condition. * command.c, expect.c, global.h, lib_exp.c, main.c, term.h: Test for SYSV4 as well as SYSV3. * inter_select.c (sys/sysconfig.h): Include when SYSV4 defined. * inter_select.c (init_interact): Add sysconf call for SYSV4. * pty_svr4.c (ptsname): Declare for SYSV4. Thu Oct 22 17:35:07 1992 Rob Savoye (rob@cygnus.com) * command.c: Added a "send_log" command. It only writes to a log file if one was opened by the "log_file" command. * main.c: Added setbuf commands for stdin, stdout, stderr to turn off buffering.