delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/04/12:14:05

X-Spam-Check-By: sourceware.org
Date: Mon, 4 Dec 2006 09:13:44 -0800
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com, andrew_certain_cygwin AT thecertains DOT com
Subject: Re: Problem with perl debugger and stdin
Message-ID: <20061204171344.GA840@efn.org>
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0612021358020 DOT 10324-200000 AT localhost DOT localdomain>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.4.44.0612021358020.10324-200000@localhost.localdomain>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sat, Dec 02, 2006 at 02:25:24PM -0800, Andrew Certain wrote:
> In a normal UNIX environment, you can run the perl debugger 
> and still redirect an input file to stdin.  In other words,
> 
> perl -d myscript < mydata
> 
> does the right thing, namely, that you enter the debugger, the debugger
> reads input from the keyboard, but if the script reads from STDIN, it gets
> lines from mydata.
> 
> Under cygwin, however, the same invocation causes the debugger to read
> commands from mydata.

There's probably something the debugger is doing for linux but not for cygwin
because it thinks cygwin can't do it, but a quick scan of perl5db.pl didn't
reveal it to me.

Doing
   PERLDB_OPTS=TTY=/dev/tty perl -d ...
should work, though.

> Please include this line when replying.

Is this some kind of behaviorist experiment?  What's my prize?

--
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/

- Raw text -


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