From: "Tennis Smith" <tennis_smith@yahoo-remove-to-reply.com>
Subject: Help - Tcl/Expect Parsing Strangeness In Emacs Shell
Date: Mon, 16 Aug 2004 11:21:09 -0700 [thread overview]
Message-ID: <1092680603.939892@sj-nntpcache-3> (raw)
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&/+GDV[MNW;N'/G5C"G#!T0E TNW0."
MQ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"\3TGQ[B<'7889$+82C#Y>QAB#'L`PEL
M^(4W\ <%8IA5BE+@+B!RAR!?&)#M4%.'PQF-AD93E>&<>$/E18<Z.@O!%A!2
MMJN @ V;Z=L2M9>J)CXQBE.:8A?ZH#,S`I&%+7IA#)DB`C&>#01D!,&CTJ J
M-P9O*20,0Q6MR,<RL*$W?;3BZ@")Q"(:IY-]F* 14!,&W!F2C"KT(PB>\T4%
MT' __?E/)W5 @DZZ*V6XS*4N=\G+7OKRE\ ,IC"'2<QB&O.8R$RF,I?)S&8Z
M\YG0C*8TITG-:EKSFMC,IC:WR<UN>O.;X RG.,=)SG*:\YSH3*<ZU\G.=KKS
<G?",ISSG2<]ZVO.>^,RG/O?)SW[Z\Y\`#:@U`0``
`
end
next reply other threads:[~2004-08-16 18:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 18:21 Tennis Smith [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-08-16 23:00 Help - Tcl/Expect Parsing Strangeness In Emacs Shell Tennis Smith
2004-08-17 14:32 ` Don Libes
2004-08-17 15:53 ` Tennis Smith
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1092680603.939892@sj-nntpcache-3 \
--to=tennis_smith@yahoo-remove-to-reply.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.
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.