bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help - Tcl/Expect Parsing Strangeness In Emacs Shell


From: Tennis Smith
Subject: Help - Tcl/Expect Parsing Strangeness In Emacs Shell
Date: Mon, 16 Aug 2004 11:21:09 -0700

Hi,

Apologies for the wide distribution. This is in one of those grey areas
between tools so I'm not sure where it fits.

Basically, in certain circumstances, Tcl/Expect doesn't seem to work
correctly while in a tcsh/bash shell under Emacs.  Application output that
Expect is "expecting" will not be detected.

I ran into this while trying to parse the output of a telnet session to a MS
Windows machine.  Initially, I thought it was something wrong with the
Windows output (or with your humble programmer ;-)). During debugging, I've
winnowed out the various Windows and networking components . Now I can
recreate it at will on Solaris and Linux with no telnet/Windows involvement.

By contrast, everything works correctly on rxvt, xterm and Emacs version
20.7.1 and earlier.

The only environment that consistently has this occur is Emacs versions
21.2.95.2 and later. In addition, this only happens parsing strings with
"tabs" (0x09) frequently used.

How to observe/recreate:

Attached, is tar file with two tiny scripts that illustrate the problem.

After uncompress/untar, run the "test.exp" script. The "test.exp" script
spawns a task that will print a reproduction of a command output. When
everything is working correctly, you'll see two copies of the command
output, one from stdout and one printed from expect itself.

If run under an xterm, expect will be able to detect output and put it into
the "accum" variable (which is then printed). But, if run in a shell under
Emacs (tcsh or bash in my case), expect will not detect the data and will
put only blank lines into the "accum" variable.

Has anyone else seen this?

TIA,
-Tennis


begin 666 exptest.tar.Z
M'YV0+EZ4P0.'3IDY=%X`6,BPH<.'$"-*G$BQ8D48,&C N%&C!@",-&K Z/@1
M(\89,4J:7(D10 P8+V_<H"&CA@T;'V/$N!'#(PB/%H,*'4JTZ,,Z",/(`0$"
M@$$W;M+,,0JQC)LS.JEJW<JUJ]>O8+<&'%CP8$(R8>B$.6/5!9TQ;,+*W0H3
M(T>/($629(E2Y<H8,V[ <%E7)DV;.&%JK D`Q."YD",?3;JTZ=.H4[U:Q9I2
MLN?/H$-['A'BA9@T;E[,0:-@! @\L&/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