From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32255 invoked by alias); 10 Nov 2003 18:44:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 32248 invoked from network); 10 Nov 2003 18:44:52 -0000 Received: from unknown (HELO SJN-EXM-02.corp.ebay.com) (216.113.168.128) by sources.redhat.com with SMTP; 10 Nov 2003 18:44:52 -0000 Received: from sjc-exf-06.corp.ebay.com ([10.254.62.50]) by SJN-EXM-02.corp.ebay.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 10 Nov 2003 10:44:51 -0800 Received: from SJC-EXM-29.corp.ebay.com ([10.254.56.73]) by sjc-exf-06.corp.ebay.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 10 Nov 2003 10:44:51 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: STDIN and STDOUT not connected to a terminal? Date: Mon, 10 Nov 2003 18:44:00 -0000 Message-ID: <847EBC3ED54AFE46A5DB3CD39A61D20D5218DC@sjc-exm-29.corp.ebay.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Brown, Victoria" To: X-OriginalArrivalTime: 10 Nov 2003 18:44:51.0618 (UTC) FILETIME=[B99AA020:01C3A7BA] X-SW-Source: 2003-11/txt/msg00327.txt.bz2 Sigh. I read the FAQ; I found nothing. I looked in the archives (obvious from my posting). "Smart questions" (ESR notwithstanding) are in the eye of the beholder. This is Perl 5.8.0 Windows 2000 Pro theoretically latest cygwin (I installed it recently) BASH_VERSION=3D'2.05b.0(1)-release'=20 CYGWIN=3D'ntsec tty' If there is something more you need to know, then please _tell me what it = is_.=20 Don't be cryptic. I've been using Unix since 1983; I've been using cygwin since October 15, 2= 003. -- Vicki -----Original Message----- From: listmem,ber Sent: Monday, November 10, 2003 10:35 To: Brown, Victoria Subject: RE: STDIN and STDOUT not connected to a terminal? your example code results in=20 $ perl perltst STDIN OK STDOUT OK on my windows XP Pro system You might get more of a response if you follow the instructions at > Problem reports: http://cygwin.com/problems.html > -----Original Message----- > From: Brown, Victoria=20=20 > Sent: Tuesday, November 04, 2003 12:19 > To: 'cygwin@cygwin.com' > Subject: STDIN and STDOUT not connected to a terminal? >=20 >=20 >=20 > > Date: Wed, 15 Mar 2000 08:49:27 -0500 > >References: <492568A3.0020F860.00@pwj-gw-n001.pwj.co.jp> > >Using the current development snapshot I compiled up Perl 5.6.0 RC1=20 > >without any problems. However, I'm having problems with a=20 > very simple=20 > >line of Perl: > > > >perl -le 'print q/foo/ if -t STDIN' >=20 >=20 > I am having a similar problem; here's the Perl script >=20 > #!/usr/bin/perl -w >=20 > if (-t STDIN) { > print "STDIN OK\n"; > } else { > print "no STDIN?\n"; > } >=20 > if (-t STDOUT) { > print "STDOUT OK\n"; > } else { > print "no STDOUT?\n"; > } >=20 >=20 > It results in > no STDIN? > no STDOUT? >=20 >=20 >=20 > Because STDIN and STDOUT do not appear to be attached to a=20 > terminal, I cannot run Active State's ppm program.=20 > ppm3-bin.bat checks if (-t STDIN and -t STDOUT) and dies if=20 > the result is false. >=20 > This is Perl 5.8.0, newly installed. > The Problem occurs in both rxvt and the standard console=20 > shell. BASH_VERSION=3D'2.05b.0(1)-release' CYGWIN=3D'ntsec tty' >=20 > Theoretically this is the most recent cygwin version; I did a=20 > "reinstall". Not sure what to look at to prove the version=20 > #... if there is an environment variable I don't see it. >=20 > The folks at ActiveState cannot reproduce this problem; they=20 > _can_ run ppm with the latest version of cygwin bash. >=20 > Pointers appreciated. What do I need to change, install,=20 > uninstall... to cause Perl to believe that STDIN and STDOUT=20 > are connected to a terminal? >=20 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/