delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/11/14:50:30

X-Spam-Check-By: sourceware.org
Message-ID: <457DB669.CF3B635C@dessent.net>
Date: Mon, 11 Dec 2006 11:50:01 -0800
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: sh problems
References: <20061211193150 DOT GK18095 AT cox DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Bob Rossi wrote:

> I think that I have narrowed this down enough to say that this is a
> cygwin issue. Hopefully, I can get some advice on this list. If I run
> these commands in a dos window that I started nativly on the machine,

So, essentially, this boils down to "I'm running a non-Cygwin app
connected to a Cygwin tty and it's behaving strangely."  Well, duh. 
Non-cygwin apps attached to ttys do that, because non-Cygwin apps don't
know what a tty is, they see it as a pipe and get confused.  I don't
understand how you'd expect this to work, unless you thought for some
reason that the fact that you're using MSYS's sh would somehow make it
work because MSYS is an ancient fork of Cygwin.  But it's been all
patched to hell so as to specifically not appear as a Cygwin app, so
it's no different than any other non-Cygwin binary in that regard.  If
you want MSYS's sh to think you're connected to a terminal you'll need
to port openssh to use MSYS and not Cygwin's runtime, so that sh is
connected to a MSYS tty (if MSYS even retained the pty emulation code at
all, I have no idea.)  Remember the key point here, that ttys don't
exist on windows and so they have to be emulated, and this emulation
only works if all the programs involved are in on the prank.

Brian

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