Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
read -s with a prompt
- X-seq: zsh-workers 23901
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: read -s with a prompt
- Date: Wed, 3 Oct 2007 18:57:50 +0100
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author