-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
1570 lines (1133 loc) · 57 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2014-05-01 Andreas Kupries <andreask@activestate.com>
* 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 <nils.carlson@ludd.ltu.se>.
Replaced a cc==0 check with proper Tcl_Eof() check.
2013-11-04 Andreas Kupries <andreask@activestate.com>
* tclconfig/tcl.m4: [http://sourceforge.net/p/expect/patches/17/]
* configure: Extended Tcl header detection for OS X Mountain Lion.
* 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.
2012-08-15 Andreas Kupries <andreask@activestate.com>
* 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
<hirofumi@mail.parknet.co.jp>. 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.
2012-05-16 Andreas Kupries <andreask@activestate.com>
* exp_chan.c: [Bug 3526461]: Applied patch by Michael Cleverly
<cleverly@users.sourceforge.net> 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: <cleverly@users.sourceforge.net> fixing problem
* expect.c: with an insufficient test for a lost channel in
exp_background_channelhandler.
2010-10-26 Andreas Kupries <andreask@activestate.com>
* 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.
2010-09-30 Andreas Kupries <andreask@activestate.com>
* 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:
* 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.
2010-09-17 Jeff Hobbs <jeffh@ActiveState.com>
* Makefile.in: improved make dist target to include the necessary
files, and remove old dist_orig.
Enable Makefile regen target
2010-09-16 Jeff Hobbs <jeffh@ActiveState.com>
* 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
2010-09-01 Andreas Kupries <andreask@activestate.com>
* 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.
2010-08-31 Andreas Kupries <andreask@activestate.com>
* 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.
* 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.
* example/unbuffer: [Bug 2949748]: Applied patch by Vitezslav
Crhonek <vcrhonek@users.sourceforge.net> 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.
2010-08-27 Jeff Hobbs <jeffh@ActiveState.com>
* retoglob.c: Fail if the generated glob contains more than
two asterisks. Fixes [Expect SF Bug 3010684] (cederqvist)
* exp_main_sub.c: add return to silence compiler warning.
Updated EXP_VERSION to 5.45.0
* 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
2009-11-03 Andreas Kupries <andreask@activestate.com>
* 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
<eee@users.sourceforge.net> for the report.
[Expect SF Bug 2891563] 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.
* configure.in: Bumped version to 5.44.1.15.
* configure: Regen'd, autoconf 2.59.
2009-07-14 Andreas Kupries <andreask@activestate.com>
* exp_clib.c (TclRegComp): Fixed memory leak reported by
<ettlmartin@users.sourceforge.net> in [Expect SF Bug 2814263].
2009-06-22 Andreas Kupries <andreask@activestate.com>
* pty_unicos.c (pty_stty): Fixed missing double-quotes for sprint
formatting strings. Thanks to <ettlmartin@users.sourceforge.net>
for the report, i.e. [Expect SF Bug 2809496].
2009-06-18 Andreas Kupries <andreask@activestate.com>
* 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
<Andrew.Belsey@Sun.COM>. 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.
2009-05-27 Andreas Kupries <andreask@activestate.com>
* exp_tty.c (Exp_SttyCmd, Exp_SystemCmd): Applied patch by
Reinhard Max (max@suse.de) 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.
2009-05-06 Andreas Kupries <andreask@activestate.com>
* retoglob.c: Accepted the patch by Mike Cumings
<mcumings@users.sourceforge.net> 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.
2008-09-30 Andreas Kupries <andreask@activestate.com>
* 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 <eee@users.sourceforge.net>, 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 <Andrew.Belsey@Sun.COM>
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].
2008-08-28 Andreas Kupries <andreask@activestate.com>
* 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 <matzek@users.sourceforge.net>.
* configure.in: Bumped version to 5.44.1.10.
* configure: Regen'd, autoconf 2.59.
2008-08-18 Jeff Hobbs <jeffh@ActiveState.com>
* exp_main_sub.c (exp_interpreter): cleaner handling of commandPtr
to prevent crash. (das)
2008-06-03 Andreas Kupries <andreask@activestate.com>
* 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.
2008-05-05 Andreas Kupries <andreask@activestate.com>
* 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.
2008-04-03 Andreas Kupries <andreask@activestate.com>
* 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
<max@tclers.tk>.
* 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:
2008-04-03 Andreas Kupries <andreask@activestate.com>
* 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
<max@tclers.tk>.
* 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.
2008-02-27 Andreas Kupries <andreask@activestate.com>
* 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.
2007-12-13 Jeff Hobbs <jeffh@ActiveState.com>
* exp_log.c (expStdoutLogU): correct which buf is output.
* exp_command.c (Exp_SendLogObjCmd): fix '--' handling
(Exp_SendObjCmd): fix '--' handling to expect last argument
2007-09-24 Andreas Kupries <andreask@activestate.com>
* 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.
2007-09-19 Andreas Kupries <andreask@activestate.com>
* 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.
2007-08-09 Andreas Kupries <andreask@activestate.com>
* 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.
* 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.
2007-07-17 Andreas Kupries <andreask@activestate.com>
* 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.
2007-07-12 Andreas Kupries <andreask@activestate.com>
* 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.
2007-07-11 Andreas Kupries <andreask@activestate.com>
* 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.
* Dbg.c: Converted the lot of argc,argv based command
* exp_command.c: implementations over to objc,objv.
* expect.c:
* exp_main_sub.c:
* 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:
* 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:
* 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.
* 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.
* exp_command.c: Fixed typo in comment.
2007-06-28 Andreas Kupries <andreask@activestate.com>
* Merged changes from the official version 5.44.1 of expect into
the SF sources. See the details below.
--------------------
Marius Schamsula <marius173@mchsi.xcom> 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 <danielwong@berkeley.xedu> noted the home page
should note that Wikipedia has a very readable entry for Expect.
Andre Alves <aalves@escloyalty.xcom> 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 <di@fh-wedel.xde> 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").
--------------------
2006-02-27 Andreas Kupries <andreask@activestate.com>
* exp_main_sub.c: Added command 'exp_configure' for magic configuration.
* exp_command.c: Accepts option -strictwrite. Default is 0, ignoring
* exp_chan.c: write errors (compatible to 5.41). Setting to 1 re-
* expect_tcl.h: activates 5.42 behaviour.
2006-01-25 Jeff Hobbs <jeffh@ActiveState.com>
* tclconfig/tcl.m4, configure: Fix LD_SEARCH_FLAGS setting in tcl.m4
* example/unbuffer: whitespace police
* example/beer.exp: brace exprs
* expect.man: use clock instead of exec date, minor nroff fixes.
2006-01-24 Andreas Kupries <andreask@activestate.com>
* tclconfig/tcl.m4: Updated to TEA 3.5
* configure.in: Ditto.
* configure: Regenerated.
2006-01-10 Jeff Hobbs <jeffh@ActiveState.com>
* tests/expect.test: ensure iso8859-1 for /tmp/null (steffen).
2005-09-19 Andreas Kupries <andreask@activestate.com>
* exp_chan.c (ExpOutputProc): Added guard to intercept and ignore
empty write operations, i.e. operations trying to write zero
bytes.
2005-09-09 Andreas Kupries <andreask@activestate.com>
* exp_chan.c (ExpBlockModeProc): No, stdin is not ok (See last
entry). Fixed.
2005-07-07 Andreas Kupries <andreask@activestate.com>
* exp_chan.c (ExpBlockModeProc): [Expect SF Bug 1108551]. Excluded
manipulation of the blocking status for stdin/stderr. This is
handled by the Tcl core itself and we must absolutely not pull
the rug out from under it. The standard setting to non-blocking
will mess with the core which had them set to blocking, and
makes all its decisions based on that assumption. Setting to
non-blocking can cause hangs and crashes. Stdin is ok however,
apparently.
This problem was introduced at '2004-06-14'.
2005-06-22 Andreas Kupries <andreask@activestate.com>
* exp_chan.c: Fixed bug causing crash of expect on exit when a
* exp_command.c: Tcl channel is used with -(leave)open more than
* exp_command.h: once. It tried to close such channels multiple
times, going through already freed memory. Added data structures
to track and refcount all such channels, to close them only when
the last user goes away.
2005-06-09 Andreas Kupries <andreask@activestate.com>
* Makefile.in: Upgraded build system to TEA 3.2.
* configure.in:
* config.guess:
* config.sub
* exp_main_sub.c:
* aclocal.m4:
2005-03-29 Andreas Kupries <andreask@activestate.com>
* exp_chan.c: Fixed problem with debugger introduced at '2004-06-14'.
* tcldbg.h: For a nonblocking stdin the debugger blowed up on the
* Dbg.c: empty reads it could get, exiting the application. I
guess that this was an implicit 'panic'. Fix:
- Split ExpBlockmodeProc into high- and lowlevel
code, the latter for use by the debugger. The
high-level code tells the debugger which state
stdin is in (doing this explicitly because if
FIONBIO is used it is not possible to query the fd
directly, and I saw no reason to #ifdef for fcntl
which can).
- Debugger now exports a function for use by the
blockmode proc, and in each interaction it checks
for nonblocking input, forces blocking if
necessary. At the end of each interaction the true
mode is restored. Both operations use the
low-level blockmode code.
2005-03-07 Jeff Hobbs <jeffh@ActiveState.com>
* exp_tty.c (Exp_SttyCmd): fix from Libes that controlling
terminal check example (book p372) by restricting set of
exp_ioctled_devtty variable.
2005-02-15 Andreas Kupries <andreask@activestate.com>
* Merged changes from the official versions 5.42.1 and 5.43.0 of
expect into the SF sources. See the details below.
--------------------
Martin Forssen <maf@tkrat.xorg> fixed bug in ExpOutputProc
that caused misbehavior during partial writes.
Someone noted that gets stdin behaves differently (returns -1
immediately) from tclsh because with 5.42, stdin is unblocked by
defaults.
Robroy Gregg <robroy@armory.xcom> noted that expect_background
ignores timeouts. Added to documentation.
Jens Peterson <peterson@redhat.xcom> provided patch for
"mkpasswd -vo".
Gary Bliesener <gary.bliesener@nextel.xcom> noted that
multixterm failed on his system which had an old Tk that didn't
support the Tk package.
Removed beta designation.
Daniel A. Steffen <steffen@ics.mq.edu.xau> provided patch for
MacOS to avoid panic-redefinition.
--------------------
2005-01-21 Andreas Kupries <andreask@activestate.com>
* exp_inter.c: Changed all uses of 'time(3)' to Tcl_GetTime. IOW
* expect.c: go through the abstract core API instead of
directly acessing OS time. This makes the code
dependent on Tcl 8.4, as Tcl_GetTime was not public
before. See TIP #73 for its introduction into the
public API. As for the reason behind _this_ change
see TIP #233. Our change here now causes Expect to
be automatically in sync with any virtualization
set up in the core.
2004-08-19 Andreas Kupries <andreask@activestate.com>
* exp_chan.c (ExpOutputProc): Added code posted by Don on
c.l.t. to handle interrupted system calls (EAGAIN).
2004-07-15 Andreas Kupries <andreask@activestate.com>
* Merged changes from the official version 5.42b0 of expect into
the SF sources. See details below.
--------------------
Alexander Doktorovich <alexander.doktorovich@ericsson.xcom>
wanted to use Expect as a filter. This is possible but 'too
hard'. To make it easier, added close_on_eof command to control
whether expect/interact automatically close the channel on eof.
This should simplify/enable other scripts.
Kurt Heberlein <kurth@3pardata.xcom> noted that Expect would
hang. Andreas tracked it down to a change in Tcl such that when
Tcl had data left in its buffers, it would check for more data
rather than returning what it had to Expect first. If no data
was forthcoming then Tcl would hang because the pty driver runs
in blocked mode. Recoded to use nonblocking mode.
Yi Luo <yluo@brocade.xcom> noted that multixterm xterms were
reporting the parent's X window ids (via the WINDOWID env
variable) instead of the new ones.
Dick Van Deun <dirk@dinf.vub.ac.xbe> noted that kibitz expects
to find write in /bin but it is in /usr/bin on Slackware. Seems
safe to drop the prefix.
Steve Lee <steve@tuxsoft.xcom> noted that building Expect failed
on Linux when built from scratch because stty ends up in
/usr/local/bin rather than the assumed /bin. Added code to
support this.
--------------------
2004-06-14 Andreas Kupries <andreask@activestate.com>
* exp_chan.c: Integrated the block mode proc I got by mail from
Don Libes into the channel driver. This fixes an error with
expect hanging on some input if the situation is just
right^Hwrong. Basically if the buffers in driver, Tcl IO core
and Expect itself are aligned just so it can cause Expect to
block in all call to the OS for more data even if all the data
it needs is in ts buffers. Because the driver is blocking and
the Tcl core was told that it can run in non-blocking mode. with
the block mode proc in place the driver knows that it should be
non-blocking and is able to tell this to the OS as well. The
call to the OS still happens, but is not blocking anymore, and
so the problem is gone.
A number of incompat changes in the Tcl IO core to work around
this problem in Expect will be removed now.
2004-06-03 Andreas Kupries <andreask@activestate.com>
* aclocal.m4 (TCLHDIRDASHI): Extended with path to unix headers as
well.
* expect_tcl.h: Added inclusion of <stdio.h>.
Both changes required for Expect to compile against Tcl 8.5
after the header reform.
* configure: Regenerated.
2004-05-19 Andreas Kupries <andreask@activestate.com>
* Merged changes from the official version 5.41 of expect into the
SF sources. See details below.
--------------------
Simon Taylor <simon@unisolve.com.xau> provided fix for interact
-o which was completely broken by 5.40.1.
Added scroll support to official tkterm. Copied all fixes
from/to term_expect to/from tkterm.
Kiran Madabhushi <maskiran@hotmail.xcom> encountered interact
diagnostics incorrectly pointing to expect_background. Also,
found multiple -o flags behaving unexpectedly. Added diag.
Kristoffer Eriksson <ske@pkmab.xse> noted typo in SIMPLE code in
exp_inter.c. However, this is extremely unlikely to affect any
machines.
Reinhard Max <max@suse.xcom> noted that "make test" failed when
run in the background. The log testcase was testing the
send_tty command. Added code in both Expect and in the test to
handle this.
--------------------
2004-02-25 Andreas Kupries <andreask@activestate.com>
* Merged changes from the official version 5.40 of expect into the
SF sources. See details below. Partially already done (Rich
Kennedy's patch).
--------------------
Eric Raymond <esr@snark.thyrsus.xcom> provided troff-related
fixes for the expect, lib, and dislocate man pages.
Rich Kennedy <rickenne@cisco.xcom> noted a bug having to do
with our caching of whether we have registered a filehandler.
This broke when Tcl was setting a handler on the same file.
Ken Pizzini <ken.pizzini@explicate.xorg> provided patch for
leak in spawn error handling.
Pete Lancashire <plancashire@columbia.xcom> noted autopasswd
example broke on Solaris which capitalized prompts.
--------------------
2003-10-20 Andreas Kupries <andreask@activestate.com>
* exp_event.c (exp_get_next_event): Applied a patch made by Don
Libes in response to a bug report posted to news:comp.lang.tcl
by Rich Kennedy <rickenne@cisco.com>. Patch was posted to c.l.t
too.
> Subject: Re: 2nd interact does not grab stdin
> Date: 17 Oct 2003 15:33:38 -0400
> From: Don Libes <libes@nist.gov>
> Organization: National Institute of Standards and Technology
> Newsgroups: comp.lang.tcl
> References: <3F86D6F8.E535CBDE@cisco.com>
> It's a bug - some overaggressive caching regarding stdin. A fix
> appears below. (You should also be able to avoid the problem by
> replacing the gets with expect_user.)
> Don
> Rich Kennedy <rickenne@cisco.com> writes:
> > Hi,
> >
> > The following little expect script gets in trouble with second
> > 'interact' statement. The 'less' program does not get stdin
> > so it doesn't respond to typed characters...
> >
> > Is there something that must be done after the 1st interact to
> > allow the second to work correctly? (Note, you have to run
> > as a script because it works correctly if you type the commands
> > interactively to expect)
> >
> > #!/usr/local/bin/expect
> >
> > gets stdin a
> > spawn less file1
> > interact
> > wait
> > gets stdin junk
> > spawn less file2
> > interact
> > wait
> >
> > Thanks
> >
> > Rich Kennedy
2003-09-05 Andreas Kupries <andreask@activestate.com>
* Merged changes from the official version 5.39 of expect into the
SF sources. See details below. Partially already done.
--------------------
Poorva Gupta <poorva@cup.hp.xcom> noted that grantpt/unlockpt
order was backward. Strange that this was never a prob before!
Eric Raymond <esr@snark.thyrsus.xcom> provided a troff-related
fix for the multixterm man page.
Nicolas Roeser <n-roeser@gmx.xnet> noted confusion with md5 so I
made the Expect page more explicit about which file that hash
was based on.
Josh Purinton noted that earlier fix wasn't quite right. Exit
on INT/TERM should cause Expect to exit with signal embedded in
status. He also requested I obfuscate email addresses in this
file.
Guido Ostkamp <Guido.Ostkamp@t-online.xde> and Igor Sobrado
<sobrado@string1.ciencias.uniovi.xes> noted that fixline1
rewrote scripts to be expect scripts even if they were expectk
scripts.
Dirk Petera <dirkpetera@yahoo.xcom> noted that any_spawn_id used
to work but did no longer. Looks like a bug left over from the
the I18L conversion. Fixed.
Steve Szabo noted exp_log_file -open channel failed. Fixed.
Fixed bug from 5.31 that prevent stty from returning messages
from underlying program.
Thomas Dickey <dickey@herndon4.his.xcom> noted that ncurses
ignores 2-char term names because of, well, poor assumptions and
coding. Changed tkterm to use longer names.
Heath Moore <hmoore@systran.xcom> noted that exp_clib could lock
up if remtime happened to be precisely 0. Recoded to avoid.
At request of Per Otterholm <otterholm@telia.xcom>, wrote script
to read from stdin and echo passwords (exercise 9 in Tk chapter
of Expect book). Added to example directory as passwdprompt.
Josh Purinton <josh@purinton.xorg> pointed out that by default,
SIGINT/TERM should cause expect's return status to be 1, not 0.
Paul Reithmuller <paul.reithmuller@eng.sun.xcom> noted that
unbuffer shouldn't postprocess its output. Added stty_init.
Mordechai T. Abzug <morty@sanctuary.arbutus.md.xus> noted that
log_file wasn't recording -append status.
James Kelly <macubergeek@comcast.xnet> noted weather example
needed new source.
Dimitar Haralanov <mitko@tahoenetworks.xcom> noted that interact
dumped core with interact { timeout 1 }
--------------------
2003-06-16 Andreas Kupries <andreask@activestate.com>
* exp_command.c: Applied patch provided on c.l.t., by Don Libes
<libes@nist.gov> in response to a bug report by Dirk Petera
<dirkpetera@yahoo.com> in same place. See thread reference
below:
http://groups.google.ca/groups?threadm=4791f5a6.0305250619.1a660299%40posting.google.com
2003-05-08 Andreas Kupries <andreask@activestate.com>
* exp_clib.c (expectv): Applied patch provided on c.l.t., by Don
Libes <libes@nist.gov> in response to a bug report by "Heath
Moore" <hmoore@systran.com> in same place:
> Regarding expect 5.38...
>
> I'm using libexpect on RedHat 8.0 to communicate via telnet,
> and am having problems with it locking up instead of timing
> out. Causing traffic during the lockup breaks the lockup. I
> looked at the sources, and think I may have found the reason.
>
> It appears as though i_read can be called with remtime== 0,
> which means do > one read() and return without using alarm(),
> even when exp_timeout is non-zero. This would happen if
> i_read were to return after receiving non-matching data when
> end_time == current_time. The subsequent i_read would then
> wait until it received data.
2003-02-17 Andreas Kupries <andreask@activestate.com>
* Makefile.in:
* configure.in: Removed the check of configure against
configure.in and Makefile.in. It is a hassle to deal with when
trying to build straight from CVS, making unsupervised automatic
builds difficult
2003-02-14 Andreas Kupries <andreask@activestate.com>
* configure.in: Made expect aware of tcl stubs. Derived from the
* exp_command.h: patches to expect done by Steve Landers
* exp_command.c: <stevel@digital-smarties.com>. Modifications:
* exp_main_sub.c No global cmdinfo structures for 'close' and
* exp_main_exp.c: 'return'. Made this per-interpreter information
* exp_main_tk.c: as it should be. Using interp assoc data for this.
NOTE: stubs is not default, but has to be activated via '--enable-stubs'.
* configure: Regenerated.
2003-02-14 Andreas Kupries <andreask@activestate.com>
* exp_chan.c (exp_close_all): Save the nextPtr in a local variable
before calling 'exp_close' as 'expStateFree' can be called from
it under some circumstances, possibly causing the memory
allocator to smash the value in 'esPtr'.
2003-02-03 Andreas Kupries <andreask@activestate.com>
* exp_log.c (expLogChannelOpen): Fixed the bug reported on
comp.lang.tcl by Mordechai T. Abzug
<morty@sanctuary.arbutus.md.us>. The bugfix itself was provided
by Don Libes.
2002-10-09 Andreas Kupries <andreask@activestate.com>
* exp_command.c (Exp_SpawnCmd): Tcl_GetChannelHandle expected a
ClientData*, but got an int*. sizeof(int) != sizeof(ClientData)
on 64bit platforms. Crashed the command on a PA-RISC 2.0 machine
with --enable-64bit set. Fix: Use temp. variables of type
ClientData to retrieve the fd's, and copy this into the actual
variables, with a cast to int.
2002-09-25 Jeff Hobbs <jeffh@ActiveState.com>
* configure: regen'ed
* configure.in: use tcl_libdir in EXP_LIB_SPEC instead of
${INSTALL_ROOT}${exec_prefix}/lib (steffen)
* exp_main_tk.c (Tk_Init2): don't call XSynchronize on OS X.
2002-08-08 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* Merged changes from the official version 5.38 of expect into the
SF sources. See details below.
* Makefile.in: Added generation of MD5 checksum for distributed
archive.
* rftp: Bugfix by Curt Schroeder, see HISTORY
* HISTORY: Updated with new info.
* configure: Updated version info.
* configure.in: Updated version info.
2002-06-26 David Gravereaux <davygrvy@pobox.com>
* example/weather: Updated script to use rainmaker.wunderground.com
instead of cirrus.sprl.umich.edu. The old service is closed.
Added Larry Virden's notes about how rainmaker needs reverse DNS
from the peer making the connection or no data can retrieved.
This appears to be a blind error condition.
2002-06-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* exp_main_tk.c: #ifdef'd definition of "matherr". This hack is
not required for 8.4 anymore. But still for 8.3.
2002-03-25 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* 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 <libes@users.sourceforge.net>
* Andreas Kupries mods to provide CONST support per TIP 27 (Fixed
SF Patch #525074).
2002-02-25 Andreas Kupries <andreas_kupries@users.sourceforge.net>