From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: twilliam@twilliam.org Newsgroups: gmane.emacs.bugs Subject: bug#19643: 24.2; shell mode Date: Tue, 20 Jan 2015 17:12:31 -0700 Message-ID: <83vbk1htzk.fsf@WILLIAM.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421803572 1858 80.91.229.3 (21 Jan 2015 01:26:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 01:26:12 +0000 (UTC) To: 19643@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 21 02:26:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YDk3f-0005j6-KO for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jan 2015 02:26:11 +0100 Original-Received: from localhost ([::1]:46188 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDk3e-0004zA-L2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 20:26:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDk3a-0004z1-8x for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 20:26:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDk3W-0006jn-Qe for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 20:26:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDk3W-0006jX-NP for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 20:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YDk3W-0006Vc-AK for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 20:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: twilliam@twilliam.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jan 2015 01:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19643 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142180353724985 (code B ref -1); Wed, 21 Jan 2015 01:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jan 2015 01:25:37 +0000 Original-Received: from localhost ([127.0.0.1]:51195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDk35-0006Uu-QG for submit@debbugs.gnu.org; Tue, 20 Jan 2015 20:25:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55888) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDiuz-0004mi-UY for submit@debbugs.gnu.org; Tue, 20 Jan 2015 19:13:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDius-00037F-V9 for submit@debbugs.gnu.org; Tue, 20 Jan 2015 19:13:04 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDius-000371-Sl for submit@debbugs.gnu.org; Tue, 20 Jan 2015 19:13:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDiur-0007gX-6I for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 19:13:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDiul-0002sg-ST for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 19:13:01 -0500 Original-Received: from eastrmfepo102.cox.net ([68.230.241.214]:54129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDiul-0002pY-MG for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 19:12:55 -0500 Original-Received: from eastrmimpo209 ([68.230.241.224]) by eastrmfepo102.cox.net (InterMail vM.8.01.05.15 201-2260-151-145-20131218) with ESMTP id <20150121001254.KXAQ13649.eastrmfepo102.cox.net@eastrmimpo209> for ; Tue, 20 Jan 2015 19:12:54 -0500 Original-Received: from WILLIAM ([68.2.157.163]) by eastrmimpo209 with cox id iQCt1p0043XoDK001QCt20; Tue, 20 Jan 2015 19:12:53 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020201.54BEEF05.01B8,ss=1,re=0.001,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=H/cFNZki c=1 sm=1 a=CSL9XSR9Uv9xD4AbHti0yg==:17 a=l3tE03-gAAAA:8 a=8pSgkmr8jgMFp66IjL0A:9 a=Pn9fpbpjxYc2Ifgv:21 a=AZX5xqgZ4YAfkBFa:21 a=CSL9XSR9Uv9xD4AbHti0yg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Tue, 20 Jan 2015 20:25:33 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org 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 Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98530 Archived-At: I'm trying to use shell mode. In fact, I'm trying to run a Perl program in shell mode. I launch the program, and it runs. Input from a file is read, processed. Output (to STDOUT) is printed to *shell*. Trouble is I can't read keyboard input (as in ). What am I missing (except a brain)? Ok, this is Emacs 24.2.1 running on Windows XP. I downloaded Perl from ActiveState in 2011. Here's a simple Perl program that demos the problem: print "Give me a number: "; chomp ( $Anumber = ); print "Give me another: "; chomp ( $Bnumber = ); $product = $Anumber * $Bnumber; print "$Anumber times $Bnumber = $product\n"; It works fine in a DOS window. In emacs shell mode it tells me this Use of uninitialized value $Anumber in chomp at c:\Perl\ex2-4.pl line 3. Use of uninitialized value $Bnumber in chomp at c:\Perl\ex2-4.pl line 5. Use of uninitialized value $Bnumber in multiplication (*) at c:\Perl\ex2-4.pl line 6. Use of uninitialized value $Anumber in multiplication (*) at c:\Perl\ex2-4.pl line 6. Use of uninitialized value $Anumber in concatenation (.) or string at c:\Perl\ex2-4.pl line 7. Use of uninitialized value $Bnumber in concatenation (.) or string at c:\Perl\ex2-4.pl line 7. Give me a number: Give me another: times = 0 Perl is complaining about uninitialized values before it has even printed the prompts for them. In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-28 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-e M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Use of uninitialized value $Anumber in chomp at c:\Perl\ex2-4.pl line 3. Use of uninitialized value $Bnumber in chomp at c:\Perl\ex2-4.pl line 5. Use of uninitialized value $Bnumber in multiplication (*) at c:\Perl\ex2-4.pl line 6. Use of uninitialized value $Anumber in multiplication (*) at c:\Perl\ex2-4.pl line 6. Use of uninitialized value $Anumber in concatenation (.) or string at c:\Perl\ex2-4.pl line 7. Use of uninitialized value $Bnumber in concatenation (.) or string at c:\Perl\ex2-4.pl line 7. Give me a number: Give me another: times = 0 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils goto-addr thingatpt view shell pcomplete comint regexp-opt ansi-color ring perl-mode time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)