Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Sat, 7 Jun 2003 11:20:12 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Cc: chuckh AT softhome DOT net Subject: Re: Password not hidden Message-ID: <20030607152012.GD24206@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com, chuckh AT softhome DOT net References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i On Fri, Jun 06, 2003 at 06:05:44PM +0000, Chuck wrote: >I'm running an Oracle program called sqlplus.exe under cygwin and have >noticed a rather strange behaviour. Und cygwin, if you let it prompt you >for the password, it echoes the password back. Under the Windows command >line it does not. This started when I added the line "set CYGWIN=tty" to >the batch file that launches my cygwin ksh. I wanted that line do that ^Z >and ^D worked as they do in a unix ksh. Is there a setting that will give >me both unix control character behaviour and hide the password while it's >being entered? I've looked for documentation on the CYGWIN variable and >have only found a couple of lines at http://cygwin.com/cygwin-ug-net/setup- >env.html. > >Thanks in advance. Since sq1plus is not a cygwin program, it doesn't fully understand cygwin tty's. So, it doesn't realize that it should be turning off echoing since cygwin tty's are just represented as pipes to non-cygwin aware programs. I doubt that there is anything you can do to rectify this behavior other than to make some kind of wrapper for sq1plus which redirects stdin/stdout to the console and then calls sq1plus. Maybe something like: sq1plus < /dev/console >/dev/console 2>&1 might work, but no guarantees. cgf -- Please use the resources at cygwin.com rather than sending personal email. Special for spam email harvesters: send email to aaaspam AT sourceware DOT org and be permanently blocked from mailing lists at sources.redhat.com -- 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/