Expect

Timeline
Login

Timeline

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

76 check-ins using file README version da468762fa

2020-05-31
14:16
errorfd file descriptors should be closed when forking, otherwize a fd leak occurs. This patch make use of F_DUPFD_CLOEXEC if available or fcntl setting FD_CLOEXEC flag if not. Patch by ClĂ©ment Chigot. Leaf check-in: f8e8464f14 user: pyssling tags: trunk
2020-05-21
16:55
Replace CONST84 with const. CONST84 is deprecated. Reported by multiple users including Peter da Silva. check-in: 4aa905d5e2 user: pyssling tags: trunk
16:43
Apply patch "patch-warnings" from Mikhail T. Fixes many compiler warnings. Also do some additional cleanup of pre-ansi C function definitions and ensure build on Linux still works. check-in: 35d0b2bdfe user: pyssling tags: trunk
2018-02-04
13:55
Add ChangeLog for 5.45.4 release check-in: 0a2dd35d85 user: pyssling tags: trunk, expect-5-45-4
10:45
Bump version to 5.45.4 for release. check-in: 1a99d091a8 user: pyssling tags: trunk
10:17
Fix interact bug - handle reads of 0 length on non-blocking channels by explicitly checking if the channel is non-blocking. Fix by Jack Bates. check-in: f201b879d2 user: pyssling tags: trunk
10:09
Fix eof bug introduced with previous bug fix - ensure that data received just before an eof is processed. Fix by Sergei Golovan. check-in: 7cdeb14945 user: pyssling tags: trunk
2014-05-01
19:22
* exp_main_sub.c: Updated EXP_VERSION to 5.45.3 * configure, configure.in: Updated expect to version 5.45.3 * expect.man [http://sourceforge.net/p/expect/bugs/86/]. Report and fix by Vitezlav Crhonek. * expect.c [http://sourceforge.net/p/expect/bugs/76/]. Report and fix by Mutsuhito Iikura. On finding a full buffer during matching the sliding window mechanism slides too far, truncating the whole buffer and preventing matches across the boundary. Fix is shortening the slide distance (slide only one 1/3). * expect.c: [http://sourceforge.net/p/expect/patches/18/]. Report and fix both by Nils Carlson <[email protected]>. Replaced a cc==0 check with proper Tcl_Eof() check. check-in: efa437fc3b user: andreas_kupries tags: trunk
2013-11-04
19:42
* tclconfig/tcl.m4: [http://sourceforge.net/p/expect/patches/17/] * configure: Extended Tcl header detection for OS X Mountain Lion. check-in: 51830026cb user: andreas_kupries tags: trunk
19:03
* exp_main_sub.c: Updated EXP_VERSION to 5.45.2 * configure, configure.in: Updated expect to version 5.45.2 * expect.c: [http://sourceforge.net/p/expect/patches/16/]. Report and fix both by Per Cederqvist. Replaced a memcpy with memmove as the latter properly handles overlapping memory, whereas the original code does not. check-in: c4d49ed962 user: andreas_kupries tags: trunk
2012-08-15
22:25
* exp_main_sub.c: Updated EXP_VERSION to 5.45.1 * configure, configure.in: Updated expect to version 5.45.1 * exp_chan.c: Applied patch sent in by Ogawa Hirofumi <[email protected]>. The patch fixes a problem when talking a tty where the writer has died. Some operating systems report the condition as EIO with nothing read, while this actually an EOF. Without the patch the returned data is incomplete due to the error reported immediately and dropping data in buffers. * exp_chan.c: [Bug 3526461]: Applied patch by Michael Cleverly <[email protected]> fixing a problem with the iteration over the expect channel list where the loop code may modify the list, breaking the iterator. * exp_chan.c: [Bug 3526707]: Applied patch by Michael Cleverly * exp_command.h: <[email protected]> fixing problem * expect.c: with an insufficient test for a lost channel in exp_background_channelhandler. check-in: bfc8076f3c user: andreas_kupries tags: trunk
2010-10-26
22:09
* expect.c: [Bug 3095935]: Convert #bytes information to #chars to prevent later code to fail when copying strings around and miscalculating how much to copy, for strings containing non-ASCII utf chars. check-in: f0fd8a8574 user: andreas_kupries tags: trunk, expect_5_45
2010-09-30
22:05
* example/autopasswd: Updated to use tclsh in PATH, and 'package * example/chess.exp: require Expect'. Obsoletes fixline1. * example/cryptdir: * example/decryptdir: * example/dislocate: * example/dvorak: * example/ftp-inband: * example/ftp-rfc: * example/gethostbyaddr: * example/kibitz: * example/lpunlock: * example/mkpasswd: * example/multixterm: * example/passmass: * example/read1char: * example/rftp: * example/rlogin-cwd: * example/robohunt: * example/rogue.exp: * example/telnet-cwd: * example/timed-read: * example/timed-run: * example/unbuffer: * example/virterm: * example/weather: * example/xkibitz: * example/xpstat: check-in: 5bb53d19d6 user: andreas_kupries tags: trunk
17:14
* Makefile.in: Continued work on the 'make dist' target (config.{sub,guess}) * install.sh: Removed unused file. * mkinstalldirs: Removed unused file. * tclconfig/README.txt: Removed unused file. * testsuite/config/: Removed contents of unused directory. * test/.Sanitize: Removed unused file. check-in: 021995d879 user: andreas_kupries tags: trunk
2010-09-17
16:49
remove html dist piece check-in: abb4b3ca87 user: hobbs tags: trunk
16:43
* Makefile.in: improved make dist target to include the necessary files, and remove old dist_orig. Enable Makefile regen target check-in: 49e58b2fc2 user: hobbs tags: trunk
2010-09-16
20:46
correct HP-UX LDFLAGS to -Wl,-E check-in: eceee38447 user: hobbs tags: trunk
20:35
* configure: regen with ac-2.59 * tclconfig/tcl.m4: update for correct LDFLAGS on HP-UX * Makefile.in (expect): use TEA LDFLAGS instead of tclConfig.sh to build expect executable check-in: 33b0e0d8e1 user: hobbs tags: trunk
2010-09-01
21:32
* Makefile.in: [Bug 865278] Semi-applied Don Porter's patch adding code which prevents the package from registering with Tcl interpreters which cannot load it, i.e. below the version it was compiled against. Semi because the pkgIndex.in in his patch is not used, the pkgIndex.tcl is generated by the Makefile(.in). * pkgIndex.in: Removed. File not used. check-in: 2e24ce9e6d user: andreas_kupries tags: trunk
2010-08-31
22:20
* Various cleanups, local patches of ActiveState. * exp_clib.c: Remove local copy of Tcl_ErrnoMsg(). * exp_inter.c: Hack access to TCL_REG_BOSONLY when not present, became private with Tcl 8.5 and higher. * expect.h: Remove the local fiddling with the memory allocation and panic macros. check-in: 2e3f7face1 user: andreas_kupries tags: trunk
18:30
* Dbg.c: [Bug 2972727]: Applied the parts of Larry Virden's patch which were still current. Most of it applied to the partially ansified sources we had in trunk for a time and where errors in that set of changes, thus out of date now. check-in: 4f80c3bb28 user: andreas_kupries tags: trunk
17:59
* example/unbuffer: [Bug 2949748]: Applied patch by Vitezslav Crhonek <[email protected]> to prevent unbuffer from eating the exit code of the command it ran (regular mode only, not -p). Slightly modified, I removed the superfluous 'eval' used to invoke 'wait', invoking it directly. check-in: b03f49b960 user: andreas_kupries tags: trunk
2010-08-27
22:24
* retoglob.c: Fail if the generated glob contains more than two asterisks. Fixes [Expect SF Bug 3010684] (cederqvist) check-in: 07340f8368 user: hobbs tags: trunk
22:01
* exp_main_sub.c: add return to silence compiler warning. Updated EXP_VERSION to 5.45.0 check-in: 3bd14501aa user: hobbs tags: trunk
21:51
* config.guess, config.sub, expect.m4 (removed): * configure, configure.in, tclconfig/tcl.m4: Update to TEA 3.9 * Makefile.in, aclocal.m4: Partial cleanup of the build system. * testsuite/Makefile.in: Remove unused EXP_ from configure.in * testsuite/aclocal.m4: and no longer use Tk. * testsuite/configure: Update testsuite bits to use TEA info. * testsuite/configure.in: Update expect to version 5.45 * Dbg.c: account for removal of tcldbgcf.h * DbgMkfl.in, Dbgconfig.in, Dbgconfigure, DbgpkgInd.in (removed): * tcldbgcf.h.in (removed): removed Dbg debugger subcomponent as it no longer built and debugger functionality is included in expect library and binary * pty_termios.c: add HAVE_STRING_H include string.h * exp_trap.c: add HAVE_STRING_H include string.h * expectk.man, exp_main_tk.c (removed): expectk no longer built. Use tclsh with package require Tk and Expect instead. * tests/all.tcl: add package require Expect * example/archie, example/autoexpect: minor code cleanup * example/tkpasswd, example/tknewsbiff, example/tkterm: use package require statements in lieu of expectk check-in: aa97023a94 user: hobbs tags: trunk
2010-07-02
18:10
testing checkin on branch. Added "created branch" message to ChangeLog Leaf check-in: 565dfd07f4 user: eee tags: trunk, expect_6_branch
16:03
/tmp/f check-in: 659defba32 user: eee tags: expect_5_44_1_15, trunk
2010-07-01
00:53
Undoing all changes made by me during ANSIfication attempt, and reverting to tag 'expect_5_44_1_15'. Further ANSIfication will be pursued on a branch. check-in: 5bf9e2c817 user: eee tags: trunk
2010-06-09
22:11
Change to how <fcntl.h> is included. check-in: ce28cdd7c6 user: eee tags: trunk
22:08
ANSIfication changes. check-in: 306b3e4ca4 user: eee tags: trunk
2010-04-15
14:58
ansification check-in: e385cc794f user: eee tags: trunk
2010-03-25
16:47
ANSIfication check-in: 25ef313d5b user: eee tags: trunk
2010-03-24
19:28
more ANSIfications check-in: db3d6db8b3 user: eee tags: trunk
2010-03-19
16:53
More ANSIfication check-in: ae3b8cde02 user: eee tags: trunk
2010-03-17
23:47
ANSIfication changes check-in: e785babaae user: eee tags: trunk
2010-03-15
23:17
ANSIfication changes. check-in: 7261e72970 user: eee tags: trunk
2010-03-11
21:55
WHITESPACE CHANGES ONLY. I removed a number of form-feed characters that had been littered about the source code. check-in: 427e90617d user: eee tags: trunk
21:47
Converting function declarations and definitions from K&R style to ISO C style, along with occasional related comment changes. check-in: 85282a664c user: eee tags: trunk
19:52
Fixed typo check-in: 968e0015cb user: eee tags: trunk
2009-11-03
23:43
Added bug reference for the last commit. check-in: 39d185f825 user: andreas_kupries tags: trunk
23:30
See last ChangeLog entry: Ditto for the same type of bug when emitting error 'usage: -ignore unknown signal name'. The remainder of the exp_error calls are ok however. check-in: 406ad660a8 user: andreas_kupries tags: trunk
19:27
* exp_command.c (Exp_SpawnObjCmd): [Expect SF Bug 2891422]. Fixed error message when the command to spawn could not be executed. Tried to use a Tcl_Obj* as argument for a %s. Replaced with the correct char* variable. Thanks to Elchonon Edelson <[email protected]> for the report. * configure.in: Bumped version to 5.44.1.15. * configure: Regen'd, autoconf 2.59. check-in: 7879625236 user: andreas_kupries tags: trunk
2009-07-14
18:21
* exp_clib.c (TclRegComp): Fixed memory leak reported by <[email protected]> in [Expect SF Bug 2814263]. check-in: a6f01a3232 user: andreas_kupries tags: trunk
2009-06-22
16:32
* pty_unicos.c (pty_stty): Fixed missing double-quotes for sprint formatting strings. Thanks to <[email protected]> for the report, i.e. [Expect SF Bug 2809496]. check-in: 57500f9a63 user: andreas_kupries tags: trunk
2009-06-18
16:07
* exp_command.c (Exp_LogFileObjCmd): Fix argument parsing logic error in the log_file command breaking the use of options -open and -leaveopen. Applied patch supplied by Andy Belsey <[email protected]>. With thanks for both the analysis of the problem and the patch. * configure.in: Bumped version to 5.44.1.14. * configure: Regen'd, autoconf 2.59. check-in: 416aa515e9 user: andreas_kupries tags: trunk
2009-05-27
16:52
* exp_tty.c (Exp_SttyCmd, Exp_SystemCmd): Applied patch by Reinhard Max ([email protected]) fixing buffer-overflows in the 'stty' command due to an off-by-one error in the buffer size. See the bugs https://bugzilla.novell.com/show_bug.cgi?id=506873 and https://bugzilla.novell.com/show_bug.cgi?id=501291 * configure.in: Bumped version to 5.44.1.13. * configure: Regen'd, autoconf 2.59. check-in: 20c9e7fc08 user: andreas_kupries tags: trunk
2009-05-06
19:42
* retoglob.c: Accepted the patch by Mike Cumings <[email protected]> fixing [Expect SF Bug 13179]. The updated code checks a (?...) sequence that it contains only ARE options before processing it as such. This prevents the misinterpretation of non-capturing paren groups as ARe options with subsequent segmentation fault. * configure.in: Bumped version to 5.44.1.12. * configure: Regen'd, autoconf 2.59. check-in: 07c021bf15 user: andreas_kupries tags: trunk
2008-10-03
17:52
More fixes in that area. Use second index for destination array, avoid complex index calculations to derive from index in objv. check-in: 97a0cd25df user: andreas_kupries tags: trunk
17:47
Fixed indexing error left over from command correction. Was still using overlay arguments for the execvp'd command. check-in: bf0018fbdc user: andreas_kupries tags: trunk
17:05
* configure.in: Bumped version to 5.44.1.11. * configure: Regen'd, autoconf 2.59. * exp_command.c (Exp_OverlayObjCmd): Fixed [Expect SF Bug 2127456] reported by <[email protected]>, with thanks. Changed retrieval of command from objv[0] (== 'overlay' itself), to objv[i] containing the actual user command. * expect.c (string_case_first, string_first, eval_case_string): Applied patch supplied by Andy Belsey <[email protected]> fixing the seg.fault in 'expect -exact'. With thanks for both the analysis of the problem and the patch. See also [Expect SF Bug 2114547]. check-in: d432545301 user: andreas_kupries tags: trunk
2008-08-28
21:40
* exp_trap.c (tophalf): Fixed inverted condition setting the interpreter used for trap handling to NULL, causing a crash when trying to handle ^C. This fixes [SF Bug 1757471] reported by Matthias Kraft <[email protected]>. * configure.in: Bumped version to 5.44.1.10. * configure: Regen'd, autoconf 2.59. check-in: 3637c3fa40 user: andreas_kupries tags: trunk
2008-08-19
01:15
improvement on commandPtr handling to prevent sharing issues (das) check-in: d7d621bd0c user: hobbs tags: trunk
01:02
* exp_main_sub.c (exp_interpreter): cleaner handling of commandPtr to prevent crash. (das) check-in: 3aac82ce54 user: hobbs tags: trunk
2008-06-03
22:25
* exp_glob.c (Exp_StringCaseMatch2): Fixed bug in the handling of glob classes, see [SF Bug 1873404]. The code tried to match the closing bracket of a class in the input because it was not properly skipped after the class was matched successfully. Additional trace output added. * configure.in: Bumped version to 5.44.1.9. * configure: Regen'd, autoconf 2.59. check-in: 55b4d539f9 user: andreas_kupries tags: trunk
22:18
* exp_pty.c: Minimal ansification of function definitions to match them to their prototypes where promoted types are otherwise causing a mismatch for some compilers, like AIX in 64bit mode. * configure.in: Bumped version to 5.44.1.8. * configure: Regen'd, autoconf 2.59. check-in: 3f9980272b user: andreas_kupries tags: trunk
2008-04-03
19:19
* configure.in: Bumped version to 5.44.1.7. * configure: Regen'd, autoconf 2.59. * The following set of changes was sent our way by Reinhard Max <[email protected]>. * exp_command.c: Fixed more compiler warnings, and started * exp_command.h: to ansify the code base, beginning with * exp_inter.c: the introduction of proper function prototypes. * exp_main_exp.c: * exp_pty.h: * exp_tty.c: * exp_tty.h: * exp_win.c: * expect.c: * pty_termios.c: * retoglob.c: check-in: e37bec9cc7 user: andreas_kupries tags: trunk
19:07
* configure.in: Bumped version to 5.44.1.6. * configure: Regen'd, autoconf 2.59. * The following set of changes was sent our way by Reinhard Max <[email protected]>. * configure.in: Fixed checking of stty on linux, do not restrict to specific cpu's. Further try with stdin, and stdin redirected to /dev/tty when determining if stdout is read. * testsuite/configure.in: Brought up to TEA 3.5. * testsuite/aclocal.m4: New file, to import the TEA definitions. * Dbg.c: Added missed CONST in declaration and definition of 'debugger_trap'. * exp_command.c: Fixed pointer aliasing trouble with 'Tcl_DetachPids', and added the missing initialization of the command string in the 'overlay' command. * expect.c: Fixed missing initialization of 'simple_start' element of 'ecase'. * exp_inter.c: Fixed bogus use of 'slen' in 'intMatch'. The relevant string is Tcl_Unichar, not Utf. * Makefile.in: Replaced bogus INSTALL_ROOT with DESTDIR, and added missing DESTDIR references to the target for the installation of the manpages. check-in: 2c4e134aac user: andreas_kupries tags: trunk
2008-02-29
17:47
* expect.c: Fixed refcounting error when parsing a single expect * configure.in: argument into a list of patterns and * configure: actions. Updated the version number to 5.44.1.5. * Dbg.c: Added missing 'return TCL_OK' to debugger_trap. check-in: 67cf87fb01 user: andreas_kupries tags: trunk
2007-12-13
22:33
* exp_log.c (expStdoutLogU): correct which buf is output check-in: af13f9b5a8 user: hobbs tags: trunk
22:31
(Exp_SendObjCmd): fix -- handling to expect last argument check-in: a928d6ddf1 user: hobbs tags: trunk
22:27
whitespace police check-in: 7a62024556 user: hobbs tags: trunk
22:20
(Exp_SendLogObjCmd): fix -- handling check-in: d499762dce user: hobbs tags: trunk
2007-09-24
18:34
* exp_inter.c: Changed inclusion of tcl.h to tclInt.h to get the * expect.c: definition of TCL_REG_BOSONLY, which was moved to that header in Tcl 8.5. Ditto for expect.c, for the macro TclUtfToUniChar (was a function in 8.4). Expect now compiles again for both Tcl 8.4 and 8.5. * configure.in: Bumped version to 5.44.1.4. * configure: Regenerated. check-in: d9d1562bdc user: andreas_kupries tags: trunk
17:25
* retoglob.c (EMITC): Keep the characters '^' and '$' quoted as well, we do not wish to invoke their special interpretation by the Expect glob matcher. * configure.in: Bumped version to 5.44.1.3. * configure: Regenerated. check-in: 8fd850d6fe user: andreas_kupries tags: trunk
2007-08-09
20:31
* retoglob.c: We had ExpChopNested and ExpBackslash locally ansified (prototypes) to avoid a compiler error on AIX (type promotion trouble). This now integrated into the mainline sources, conditional to AIX. check-in: 7086277753 user: andreas_kupries tags: trunk
20:23
* expect.c (Exp_TimestampObjCmd): Fixed argument processing broken by objc,objv conversion. Tried to use command name as the argument for -seconds. Also did not detect when one argument to many was specified. * configure.in: Bumped version to 5.44.1.2. * configure: Regenerated. check-in: 829a7a20eb user: andreas_kupries tags: trunk
2007-07-17
18:39
* expect.c: Circumvented problems with the C compiler by use of a temporary variable to hold the unicode pointer of a glob pattern. The computed pattern length given to Exp_StringCaseMatch was bogus. * exp_glob.c: Added tracing of the glob matcher internals (Can be enabled by define EXP_INTERNAL_TRACE_GLOB). Fixed bug in a guard condition in the optimized handling of '*'. The bad condition caused the code to miss possible matches at the beginning of the input (first char). * tests/expect.test: Added tests which check the glob matcher and RE gate keeping. * configure.in: Bumped to 5.44.1.1 to separate this from the regular 5.44.1 sources. * configure: Regenerated. check-in: 9815e30fa0 user: andreas_kupries tags: trunk
2007-07-12
22:28
* expect.c: Found bugs mismanaging input and pattern in the * exp_glob.c: updated glob matcher. We cannot check for '\0' anymore to find the end of the string, these are counted arrays now. Rewritten to use sentinel pointers. check-in: 418c1dd458 user: andreas_kupries tags: trunk
2007-07-11
21:35
* exp_chan.c: Converted the buffering system from UTF-8 in Tcl_Obj * exp_command.h: to UTF-16 C-array, to avoid the repeated conversion * expect.c: of the input from utf-8 to utf-16. Updated the glob * exp_glob.c: matching code to use the same tricks for speed which * exp_inter.c: are used by the Tcl core. Extended the regexp * exp_log.c: matching path with a glob matcher which uses a gate * exp_log.h: keeper glob pattern to weed out most non-candidates * retoglob.c (New file): in a speedy manner. Regexp matching now has to be done only for the small number of candidates identified by the gate keeper. Overall speed improvement as glob matching is faster than regexp matching. Added code translating regular expressions into their gate keeper glob pattern. check-in: b236a54f31 user: andreas_kupries tags: trunk
20:51
* Dbg.c: Converted the lot of argc,argv based command * exp_command.c: implementations over to objc,objv. * expect.c: * exp_main_sub.c: check-in: 51926427fb user: andreas_kupries tags: trunk
20:22
* Dbg.c: Cleaned up the direct access to interp->result, * exp_command.c: replaced with the proper functions and * expect.c: Tcl_Obj's. * exp_main_exp.c: * exp_main_sub.c: * exp_main_tk.c: * exp_prog.h: * exp_trap.c: * exp_tty.c: * exp_win.c: * exp_win.h: check-in: 12ba94624a user: andreas_kupries tags: trunk
20:11
* tests/cat.test: Added proper 'package require Expect' * tests/expect.test: to the test setup code (JeffH). * tests/logfile.test: * tests/pid.test: * tests/send.test: * tests/spawn.test: * tests/stty.test: check-in: e1e81a3fc1 user: andreas_kupries tags: trunk
20:07
* exp_command.c: Reformatted overlong lines, whitespace, * expect.c: comments. Added braces to some if-constructs. * exp_inter.c: Reworked if-constructs interleaved with * exp_tty.c: #if for better formatting in emacs. check-in: 8c290788c4 user: andreas_kupries tags: trunk
20:00
* Dbg.c: Added note about unhandled cases in a switch. * exp_chan.c: Added code to suppress unhandled warning for unreachable code. * exp_command.c: Removed unused variable. * expect.c: Removed unused static function, added code to suppress unhandled warning for unreachable code. check-in: 6181af45e7 user: andreas_kupries tags: trunk
19:54
* exp_command.c: Fixed typo in comment. check-in: cad5ba9615 user: andreas_kupries tags: trunk
2007-06-28
19:23
* Merged changes from the official version 5.44.1 of expect into the SF sources. See the details below. -------------------- Marius Schamsula <[email protected]> reported tclconfig missing, evidentally for new TEA. Lots of massaging to fix TEAification of Makefile and configure including that version numbers will now be full three part. Daniel Wong <[email protected]> noted the home page should note that Wikipedia has a very readable entry for Expect. Andre Alves <[email protected]> noted passmass needed some fixes to handle Solaris 9 passwd prompt changes. Andreas fixed several things: changes to better support TEA, fix debugger interaction with nonblocking mode, and probably other things I'm overlooking. Martin Dietze <[email protected]> noted that autoconf 2.59 is confused by C comment after undefs in expect_cf.h.in. Added additional code to unbuffer -p so that if a process earlier in the pipeline exits, unbuffer attempts to recover any remaining output from the spawned proc before unbuffer itself exits. Jeffrey Hobbs noted that once stty was called, a bg'd script would be suspended at exit. Turned out to be overaggressive code in stty that recorded what 'damage' the user might have caused when calling stty in the first place. Jens Petersen provided patch to make setpgrp configure better on some Linux systems. Added example/getpassck script to test for getpass bug. multixterm had debugging stuff leftover ("hello"). -------------------- check-in: c26f3be061 user: andreas_kupries tags: trunk