From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Tennis Smith" Newsgroups: gmane.emacs.bugs Subject: Help - Tcl/Expect Parsing Strangeness In Emacs Shell Date: Mon, 16 Aug 2004 11:21:09 -0700 Organization: self Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1092680603.939892@sj-nntpcache-3> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1092680424 23239 80.91.224.253 (16 Aug 2004 18:20:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 16 Aug 2004 18:20:24 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 16 20:20:01 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bwm5Q-0006Zm-00 for ; Mon, 16 Aug 2004 20:20:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bwm9X-0006Gt-GU for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Aug 2004 14:24:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bwm9V-0006Ge-J1 for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2004 14:24:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bwm9P-0006F5-Hq for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2004 14:24:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bwm9P-0006Ez-CK for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2004 14:24:07 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bwm5H-0001OY-0n for bug-gnu-emacs@gnu.org; Mon, 16 Aug 2004 14:19:51 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Bwm5G-0004Hm-Jt for gnu-emacs-bug@ftp.gnu.org; Mon, 16 Aug 2004 14:19:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1Bwm5E-0001OB-2u for gnu-emacs-bug@ftp.gnu.org; Mon, 16 Aug 2004 14:19:48 -0400 Original-Received: from [216.168.1.22] (helo=trinity.supernews.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bwm5D-0001Lk-Ox for gnu-emacs-bug@ftp.gnu.org; Mon, 16 Aug 2004 14:19:48 -0400 Original-Received: from pa-01.ranger.supernews.net ([216.168.1.34]:44590 helo=pa-01.supernews.net) by trinity.supernews.net with esmtp (Exim 4.24; FreeBSD) id 1Bwm51-00095K-B7 for gnu-emacs-bug@ftp.gnu.org; Mon, 16 Aug 2004 18:19:35 +0000 Original-Received: (from news@localhost) by pa-01.supernews.net (8.12.11/8.12.11/Submit) id i7GIJZ8B098998 for gnu-emacs-bug@prep.ai.mit.edu; Mon, 16 Aug 2004 18:19:35 GMT (envelope-from nntp-bounce@supernews.net) Original-To: gnu-emacs-bug@ftp.gnu.org Original-Path: corp.supernews.com!not-for-mail Original-Newsgroups: comp.emacs,comp.lang.tcl,gnu.emacs.bug X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4939.300 Cache-Post-Path: sj-nntpcache-3!unknown@sjc-vpn3-827.cisco.com X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/) Original-X-Complaints-To: abuse@supernews.com Original-Lines: 75 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8728 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8728 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_O8+<&'%CP8$(R8>B$.6/5!9TQ;,+*W0H3 M(T>/($629(E2Y?/GSUWKGD^_OOW:"A3 J4-G#@@1:< QQAMNF)'&&5PHP(4;"UZ!&AEOW.&? M#":!D 04( Q!H(%GU"%'6FD0F."""Q9!!QIER.&&;R"$@5992\4@@PT@..'; M'6_(L88.(S+H1@(:0B5>B&ZT, <##E`@@Z@-!C M`A>"$ 099,AQT!Q7E@F"F6B>J::96<+@@IMP;AFE&"O^UD08? I:9I9]ECBB2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