Re: stty -echo doesn't work?
Harald van Dijk <[email protected]> Thu, 23 Apr 2026 08:05:17 +0100
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
On 23/04/2026 03:39, Sebastien Peterson-Boudreau wrote: > apologies if this has been posted before. > > I just noticed that the following command > > $ stty -echo > > does not work in an interactive dash(1) shell. Hi, stty is not a shell built-in command and dash has no control over what it does. Running this locally, what seems to be happening is that the command did work, but when dash is using libedit for command editing, it immediately gets reset when prompting for the next command. This seems to be intentional on the part of libedit, it resets the tty to a known good state when it knows it needs it, but I am not sure whether it is also intentional that that reset state persists after it has successfully read the next line. What behaviour are you expecting here? Are you expecting echo to still be turned off when entering the next command, or to be turned off again after the next command has been entered successfully? Both options, as well as dash/libedit's current behaviour, seem reasonable at first glance to me. Cheers, Harald van Dijk