[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell: Password prompt eats control characters
From: |
Dan Jacobson |
Subject: |
Re: shell: Password prompt eats control characters |
Date: |
Mon, 20 Nov 2006 18:43:59 +0800 |
Oh boy, high security emacs, where one is not allowed to do anything
else until finished entering ones password. Try this:
M-x shell RET
$ password=ugSlT3pD7CcdlUhGrSgRhw #Here's your password
$ #Get it into the kill ring, because you are going to need it.
$ seq 111 #now it's far off the screen: no peeking.
$ echo -n Password:\ ; read password2
Password:
$ test "x$password2" = x$password || echo sorry
Now how are you going to get it into the minibuffer?
Control Y? Sorry.
Nope, you'll have to type it letter by letter. Fun.
It's not on our screen and our control characters are getting
eaten. Must hit the ^G of failure. What's next, eat our mouse
movements?
Anyway, what do you need control characters for in your password
anyway? Are you a 北한 secret agent or something? Didn't Mom tell you
never put control characters in your password as one day you'll be on
a different connection and they'll get eaten? Use Quoted-Printable or
something instead.