Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: read -s with a prompt
- X-seq: zsh-workers 23902
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: read -s with a prompt
- Date: Wed, 3 Oct 2007 19:07:13 +0100
- In-reply-to: <20071003175750.GD5360@xxxxxxxxxxxxxxx>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20071003175750.GD5360@xxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author