X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0	tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4CCB9539.7080305@laposte.net>
Date: Sat, 30 Oct 2010 05:47:05 +0200
From: Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: issue with inherited handle (ssh.exe, gitk)
References: <AANLkTinEoJ8htUCk57nVpXiY0rjWcNo-JPTD_7qWi45t AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTinEoJ8htUCk57nVpXiY0rjWcNo-JPTD_7qWi45t@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-me-spamlevel: not-spam
X-me-spamrating: 39.200001
X-me-spamcause:  OK, (-20)(0000)gggruggvucftvghtrhhoucdtuddrfedtiedrtddvucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtneculhhinhhugidvgiculddqvddtmd
X-IsSubscribed: yes
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


Le 28/10/2010 20:11, jean-luc malet a =C3=A9crit :
>=20
> HI
> cygwin 1.7.7(0.230/5/3)
>=20
[snip don't know about bitk]
>=20
> in another program I spawn a ssh.exe with stderr, stdin, stdout
> redirected to pipes, and for some strange reason the 'Password:'
> string is still displayed on the terminal and isn't read from the
> pipes.....

this is the normal behaviour, ssh as well as any program (password, rsh,
etc.) using some sort of getpass() function will reopen then terminal
(/dev/tty) for reading the password.
in other way, they don't read from stdin, so you can't do :
echo password | ssh ...
and if you would like to say, hey, this works on linux, remember that
GNU/Linux isn't unix, but just a unix like. also remember you the GNU
acronym...

Regards,

Cyrille Lefevre
--=20
mailto:Cyrille DOT Lefevre-lists AT laposte DOT net



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple