* read -s with a prompt
@ 2007-10-03 17:57 Stephane Chazelas
2007-10-03 18:07 ` Stephane Chazelas
0 siblings, 1 reply; 2+ messages in thread
From: Stephane Chazelas @ 2007-10-03 17:57 UTC (permalink / raw)
To: Zsh hackers list
Hiya,
this is in my opinion a minor bug of zsh:
read -s 'pw?Enter password: '
Should disable the local echo *before* issuing the prompt.
Because the use starts typing as soon as he sees the prompt.
ioctl(10, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon -echo ...}) = 0
ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
write(2, "Enter password: ", 16Enter password: ) = 16
rt_sigprocmask(SIG_UNBLOCK, [CHLD], [CHLD], 8) = 0
read(0,
Cheers,
Stéphane
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: read -s with a prompt
2007-10-03 17:57 read -s with a prompt Stephane Chazelas
@ 2007-10-03 18:07 ` Stephane Chazelas
0 siblings, 0 replies; 2+ messages in thread
From: Stephane Chazelas @ 2007-10-03 18:07 UTC (permalink / raw)
To: Zsh hackers list
On Wed, Oct 03, 2007 at 06:57:50PM +0100, Stephane Chazelas wrote:
[...]
> this is in my opinion a minor bug of zsh:
>
> read -s 'pw?Enter password: '
>
> Should disable the local echo *before* issuing the prompt.
> Because the use starts typing as soon as he sees the prompt.
>
> ioctl(10, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon -echo ...}) = 0
> ioctl(10, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon -echo ...}) = 0
> write(2, "Enter password: ", 16Enter password: ) = 16
> rt_sigprocmask(SIG_UNBLOCK, [CHLD], [CHLD], 8) = 0
> read(0,
[...]
Hmmm, yes, you may call me stupid...
Sorry, please disregard my previous email...
Cheers,
Stéphane
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-03 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-03 17:57 read -s with a prompt Stephane Chazelas
2007-10-03 18:07 ` Stephane Chazelas
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).