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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to