From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27364 invoked by alias); 4 Nov 2003 20:18:55 -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 27345 invoked from network); 4 Nov 2003 20:18:55 -0000 Received: from unknown (HELO neutron.corp.ebay.com) (67.72.12.29) by sources.redhat.com with SMTP; 4 Nov 2003 20:18:55 -0000 Received: from [10.254.62.56] (HELO sjc-exf-05.corp.ebay.com) by neutron.corp.ebay.com (CommuniGate Pro SMTP 4.0.6) with ESMTP id 59425335 for cygwin@cygwin.com; Tue, 04 Nov 2003 12:18:54 -0800 Received: from SJC-EXM-29.corp.ebay.com ([10.254.56.73]) by sjc-exf-05.corp.ebay.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 4 Nov 2003 12:18:54 -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: STDIN and STDOUT not connected to a terminal? Date: Tue, 04 Nov 2003 20:18:00 -0000 Message-ID: <847EBC3ED54AFE46A5DB3CD39A61D20D524580@sjc-exm-29.corp.ebay.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Brown, Victoria" To: X-OriginalArrivalTime: 04 Nov 2003 20:18:54.0421 (UTC) FILETIME=[DE7F8850:01C3A310] X-SW-Source: 2003-11/txt/msg00146.txt.bz2 > 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 withou= t 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 no STDIN? no STDOUT? Because STDIN and STDOUT do not appear to be attached to a terminal, I cann= ot 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. BASH_VERSION=3D'2.05b.0(1)-release' CYGWIN=3D'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 environme= nt 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 ca= use Perl to believe that STDIN and STDOUT are connected to a terminal? -- 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/