This is the mail archive of the cygwin 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: Text entry to command line program


Try something like:

CYGWIN=notty sqlplus

>-----Original Message-----
>From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of
>Ross Boulet
>Sent: Monday, February 02, 2004 2:12 PM
>To: cygwin@cygwin.com
>Subject: RE: Text entry to command line program
>
>
>> -----Original Message-----
>> From: cygwin-owner@cygwin.com
>> [mailto:cygwin-owner@cygwin.com] On Behalf Of Ross Boulet
>> Sent: Monday, February 02, 2004 8:05 AM
>> To: cygwin@cygwin.com
>> Subject: Text entry to command line program
>>
>>
>> I've been having a problem for a while now on my XP laptop
>> with an Oracle
>> program (sqlplus).  When I start sqlplus, it prompts for a
>> user id and then
>> a password.  When I run it from the windows shell (cmd.exe)
>> it works as
>> expected, i.e. the user id is echoed and the password is not:
>>
>> c:\$temp>sqlplus
>>
>> SQL*Plus: Release 9.2.0.1.0 - Production on Mon Feb 2 07:24:24 2004
>>
>> Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
>>
>> Enter user-name: myid
>> Enter password:
>>
>>
>> In bash or ksh, the password gets echoed as well (and shouldn't be):
>>
>>
>> lap /home/rossboulet # sqlplus
>>
>> SQL*Plus: Release 9.2.0.1.0 - Production on Mon Feb 2 07:22:35 2004
>>
>> Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
>>
>> Enter user-name: myid
>> Enter password: mypass
>>
>>
>> Its been happening to me for the last several releases of
>> cygwin but I can't
>> say exactly when it started happening.  Any suggestions?
>>
>
>OK, my bad.  I found a couple of references to this behavior in the ML.  I
>was suspicious of the "CYGWIN=ntsec tty" environment variable (set for sshd)
>and had tried unsetting it in the shell to no avail.  I found that if I
>unset it with dos before I start the shell, the behavior reverts to what I
>expected (password not echoed).
>
>What am I losing in the shell with not having CYGWIN set?


--
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]