delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/07/11:20:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 7 Jun 2003 11:20:12 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
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: <Xns93928FCC84818chuckhsofthomenet AT 80 DOT 91 DOT 224 DOT 249>
Mime-Version: 1.0
In-Reply-To: <Xns93928FCC84818chuckhsofthomenet@80.91.224.249>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019