delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/28/11:31:23

From: rcrampton AT armature DOT com (Robin Crampton)
Subject: Perl and bash
28 Aug 1998 11:31:23 -0700 :
Message-ID: <TFSINUHC.cygnus.gnu-win32@armature.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I'm getting strange behaviour when running YeP Perl from bash.
Running this program:

 #!/usr/local/perl/qub/perl -w
 print "Your name? ";
 $name = <STDIN>;
 chomp ($name);
 print "Welcome $name!\n";

The third line doesn't block.  I get:

 Your name?
 Welcome !

So I got the latest ActivePerl and it does the same.
But both work perfectly in a DOS box.

Huh?  (CYGWIN32_95 PC-310 4.0 19.3 i586 unknown)

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019