This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

STDIN and STDOUT not connected to a terminal?

> Date: Wed, 15 Mar 2000 08:49:27 -0500
>References: <>
>Using the current development snapshot I compiled up Perl 5.6.0 RC1 without any problems.
>However, I'm having problems with a very simple line of Perl:
>perl -le 'print q/foo/ if -t STDIN'

I am having a similar problem; here's the Perl script

#!/usr/bin/perl -w

if (-t STDIN) {
   print "STDIN OK\n";
} else {
    print "no STDIN?\n";

if (-t STDOUT) {
   print "STDOUT OK\n";
} else {
    print "no STDOUT?\n";

It results in

Because STDIN and STDOUT do not appear to be attached to a terminal, I cannot run Active State's ppm program. ppm3-bin.bat checks if (-t STDIN and -t STDOUT)  and dies if the result is false.

This is Perl 5.8.0, newly installed.
The Problem occurs in both rxvt and the standard console shell.
CYGWIN='ntsec tty'

Theoretically this is the most recent cygwin version; I did a "reinstall". Not sure what to look at to prove the version #... if there is an environment variable I don't see it.

The folks at ActiveState cannot reproduce this problem; they _can_ run ppm with the latest version of cygwin bash.

Pointers appreciated. What do I need to change, install, uninstall... to cause Perl to believe that STDIN and STDOUT are connected to a terminal?

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]