all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: twilliam@twilliam.org
Cc: 19643@debbugs.gnu.org
Subject: bug#19643: Emacs shell mode problem
Date: Sun, 25 Jan 2015 18:20:23 +0200	[thread overview]
Message-ID: <83r3uirfw8.fsf@gnu.org> (raw)
In-Reply-To: <20150124094503.e79c268344a9d5d47f0a5d337a98b23b.112f9b7d2a.wbe@email10.secureserver.net>

> From: <twilliam@twilliam.org>
> Date: Sat, 24 Jan 2015 09:45:03 -0700
> 
> Here is a simple one called oneline.pl:
> 
> use 5.012;
> use strict;
> #$|=1;
> 
> my $line = <STDIN>;
> print "\$line = $line\n";
> 
> In a DOS window it runs like this:
> 
> C:\Perl>oneline.pl
> 1234
> $line = 1234
> 
> C:\Perl>
> 
> Note in DOS I type in the line 1234, and the program prints "$line = 1234".
> 
> In Emacs shell mode it runs like this:
> 
> c:\Perl>oneline.pl
> oneline.pl
> $line = 
> 
> c:\Perl>
> 
> In Emacs the program doesn't pause to wait for a keyboard input. It blows right
> through it and then prints "$line = ".

I see this on Windows XP, but not on Windows 7.

So it's clearly some subtlety of how Windows buffers pipes and reads
from stdin.  Unless someone has more insight, I don't see what we can
do with this problem.






      reply	other threads:[~2015-01-25 16:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21  0:12 bug#19643: 24.2; shell mode twilliam
2015-01-21  4:15 ` Alexis
2015-01-21 15:49 ` Eli Zaretskii
2015-01-24 16:45 ` bug#19643: Emacs shell mode problem twilliam
2015-01-25 16:20   ` Eli Zaretskii [this message]

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=83r3uirfw8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=19643@debbugs.gnu.org \
    --cc=twilliam@twilliam.org \
    /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.