delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/12/11/15:07:27

X-Spam-Check-By: sourceware.org
Date: Mon, 11 Dec 2006 15:07:03 -0500
From: Bob Rossi <bob_rossi AT cox DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: sh problems
Message-ID: <20061211200703.GL18095@cox.net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20061211193150 DOT GK18095 AT cox DOT net> <457DB669 DOT CF3B635C AT dessent DOT net>
MIME-Version: 1.0
In-Reply-To: <457DB669.CF3B635C@dessent.net>
User-Agent: Mutt/1.5.12-2006-07-14
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 Mon, Dec 11, 2006 at 11:50:01AM -0800, Brian Dessent wrote:
> 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.

Thanks, that is very helpful.

Bob Rossi

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