From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.bugs Subject: bug#19643: 24.2; shell mode Date: Wed, 21 Jan 2015 15:15:58 +1100 Message-ID: <871tmowyyp.fsf@gmail.com> References: <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 1421813838 20242 80.91.229.3 (21 Jan 2015 04:17:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 04:17:18 +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 05:17:14 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 1YDmjC-0001v3-Eg for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Jan 2015 05:17:14 +0100 Original-Received: from localhost ([::1]:46471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDmjB-00032i-M1 for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 23:17:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDmj7-00032Z-RH for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:17:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDmj1-0008HM-NX for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:17:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDmj1-0008GP-JV for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:17:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YDmiz-0002FW-PV for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:17:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jan 2015 04:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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.14218137818592 (code B ref -1); Wed, 21 Jan 2015 04:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jan 2015 04:16:21 +0000 Original-Received: from localhost ([127.0.0.1]:51237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDmiK-0002EW-He for submit@debbugs.gnu.org; Tue, 20 Jan 2015 23:16:20 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58781) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YDmiI-0002EH-45 for submit@debbugs.gnu.org; Tue, 20 Jan 2015 23:16:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDmiB-00087t-Js for submit@debbugs.gnu.org; Tue, 20 Jan 2015 23:16:12 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDmiB-00087o-GN for submit@debbugs.gnu.org; Tue, 20 Jan 2015 23:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDmiA-000307-BR for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:16:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDmi5-00087H-Cc for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:16:10 -0500 Original-Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:41900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDmi5-000877-4M for bug-gnu-emacs@gnu.org; Tue, 20 Jan 2015 23:16:05 -0500 Original-Received: by mail-pd0-f181.google.com with SMTP id g10so14206386pdj.12 for ; Tue, 20 Jan 2015 20:16:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=LfAvk1in+YpxTxDnm2u4Ym36oZptkng6k2ct+djQNvE=; b=zi/95oW/JN90XU7e+Ydc7sSSKb2wM9O04qN0jVUk9z/1clVR0I6nWD1pxHCwYOwPlU Nf4rSmqGRDhFC9/PBS4j5nuBH86FzsafZb2v7uCcngTySgivAsATX2OZGXsJfiK4FKcZ 4ZtOLUt/jU1zj5wxCFluA03Jl76zyrZrgnFLd7cjvBeXe4bqTCmqnwRj7SYYWEDVMxCq xGeJQm6f0CY3ytUuCAQsINSSzRO6g0OkWfGu5/q5qsIgronsFRArklLslevY55M6HPY7 NZ2YiKYhVFSTk6DYAmXR9jmk9BH4ZozOODiIRgUKe6vvIi3v9Bm2Y58iVOA/wgBXHotP LL2g== X-Received: by 10.68.100.33 with SMTP id ev1mr59499043pbb.13.1421813764299; Tue, 20 Jan 2015 20:16:04 -0800 (PST) Original-Received: from localhost (CPE-120-147-144-248.gdiv2.lon.bigpond.net.au. [120.147.144.248]) by mx.google.com with ESMTPSA id hn1sm4394797pbb.36.2015.01.20.20.16.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 20 Jan 2015 20:16:03 -0800 (PST) In-reply-to: <83vbk1htzk.fsf@WILLIAM.i-did-not-set--mail-host-address--so-tickle-me> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:98532 Archived-At: twilliam@twilliam.org writes: > 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. Off the top of my head, my guess is that, when run from shell-mode, Perl is being called with the `-w` switch (which gives one warnings about certain constructs that might indicate programmer error), whereas you're not calling your script with the `-w` switch when calling it from the DOS window. See the `perlrun` man page for info about `-w`. So, do you get the above messages when you run your script from a DOS window with warnings enabled, e.g.: perl -w myscript.pl ? Alexis.