This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Password not hidden


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@sourceware.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]