Re: RFE: Echo dots option for 'read -s'

Chet Ramey <[email protected]>
Newsgroups gmane.comp.shells.bash.bugs
Organization ITS, Case Western Reserve University
Message-ID <[email protected]>
On 12/15/25 10:39 PM, Martin D Kealey wrote:

> I imagine it's fairly rare to have “read -e -s” in existing code, since “- 
> e” is /currently/ pointless when “-s” is in effect

It works the same as without -e if you don't use editing commands, and
editing commands work -- you just can't see their effect because readline
is not echoing. By that I mean you can run

read -es -p 'Password: ' PASS

and enter

abcde^B^B^Brst

and `echo $PASS' will display

abrstcde

So by `pointless' you must mean that users can't see the effect of their
editing commands -- something that would not be changed by echoing some
other character in place of the text in the line buffer.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQR8ATX7CIqvbGbGULm7WGnwZOp0qwUCaUl6nQUDAAAAAAAKCRC7WGnwZOp0q/l0
AJ9Q82pR0cq+ZJRqN/uEpG4NOxohbQCdHPyA4ilAVfUTtBue6Usk7QgKyQo=
=309o
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.