B19: perl does not support <STDIN>

Earnie Boyd earnie_boyd@yahoo.com
Sat Nov 14 10:48:00 GMT 1998


---"Patrice M.I. Parmentier" <ppa@itmasters.com> wrote:
>
> I write the trivial perl script:
> 
> print while(<STDIN>);
> 
> and run it with perl 5.00502 (ActiveState distribution AND my own
> compilation without PERL_OBJECT) on NT4 (sp3). While the script works
> properly on DOS shells, it does not work on bash: the script
immediately
> stops without reading anything from the keyboard...

If the perl is a native win32 (non-cygwin) version and you have tty
set in the CYGWIN32 variable then it's not going to work.  In order
for stdio to happen for non-cygwin binaries with the cygwin bash
requires that you set notty.


==
-                        \\||//
-------------------o0O0--Earnie--0O0o-------------------
--                earnie_boyd@yahoo.com               --
-- http://www.freeyellow.com/members5/gw32/index.html --
----------------------ooo0O--O0ooo----------------------

PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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



More information about the Cygwin mailing list