all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Help - Expect Parsing Strangeness In Emacs Shell
@ 2004-08-15 21:07 Tennis Smith (tennis)
  0 siblings, 0 replies; only message in thread
From: Tennis Smith (tennis) @ 2004-08-15 21:07 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]

Hi,

Apologies for the wide distribution. This is in one of those grey areas
between tools.

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 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

[-- Attachment #2: exptest.tar.Z --]
[-- Type: application/x-compress, Size: 1288 bytes --]

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-15 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 21:07 Help - Expect Parsing Strangeness In Emacs Shell Tennis Smith (tennis)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.