From: "Tennis Smith \(tennis\)" <tennis@cisco.com>
Subject: Help - Expect Parsing Strangeness In Emacs Shell
Date: Sun, 15 Aug 2004 14:07:30 -0700 [thread overview]
Message-ID: <001e01c4830b$e0b78920$1c0a0a0a@amer.cisco.com> (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
reply other threads:[~2004-08-15 21:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001e01c4830b$e0b78920$1c0a0a0a@amer.cisco.com' \
--to=tennis@cisco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).