X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,TW_QL X-Spam-Check-By: sourceware.org Message-ID: <4CC1E8C5.1010005@bopp.net> Date: Fri, 22 Oct 2010 14:40:53 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101006 Thunderbird/3.1.5 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How can I get mintty to not display my password? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 10/22/2010 01:49 PM, RISINGP1 AT nationwide DOT com wrote: > When using cmd.exe, when I am prompted for a password, no characters are > displayed, but the password gets entered. However, when I use mintty, the > characters I type at the password prompt are displayed. TERM=xterm. How > can I stop this from happening? > > In cmd.exe: > ----------- > > sqlplus risingp1 AT CTIBETA2 > > SQL*Plus: Release 10.2.0.1.0 - Production on Fri Oct 22 14:38:07 2010 > > Copyright (c) 1982, 2005, Oracle. All rights reserved. > > Enter password: > > Connected to: > Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit > Production > With the Partitioning, Data Mining and Real Application Testing options > > SQL> > > In mintty: > ---------- > > sqlplus risingp1 AT CTIBETA2 > > SQL*Plus: Release 10.2.0.1.0 - Production on Fri Oct 22 14:38:07 2010 > > Copyright (c) 1982, 2005, Oracle. All rights reserved. > > Enter password: hereISmyPASSWORD > > Connected to: > Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit > Production > With the Partitioning, Data Mining and Real Application Testing options > > SQL> Given that sqlplus is a native Windows application as opposed to a Cygwin application, there is no way to do what you need directly under Mintty. The problem is that Mintty uses ptys for its console handling, but Windows applications don't know about such Cygwin constructs. All they see is a pipe, so they can't do things like disabling console echoing as they would when they have a real Windows console in which to run. The only way to make this work with sqlplus if you want to primarily use Mintty as your terminal is to spawn a cmd window for sqlplus to run in: cygstart "$(which sqlplus)" risingp1 AT CTIBETA2 I think that should work for you, but I haven't tested it. -Jeremy -- 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