Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Regression: 'read -s' does not disable echo



> On 04/01/2024 09:32 GMT Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> 
>  
> > On 03/01/2024 18:18 GMT Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> > So either "read -s" should ALWAYS read from SHTTY, or something more
> > involved is needed here.
> 
> We could use ttyname to check that SHTTY and 0 are the same device.
> Then we'd just document that -s and -d (which needs a further patch)
> only work on the shell's own terminal.  The following seems to
> do what I expect on Ubuntu.

Arguably you don't need this check if you find readfd == SHTTY,
rather than 0, but I'm not sure how much more complicated I'd
want to make this.

pws




Messages sorted by: Reverse Date, Date, Thread, Author