-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Relevant clips from this cygwin bug report. When tty settings are weird (I'm not sure whether the bug is in cygwin, xterm, or just bad tty settings that could be reproduced elsewhere), backspace only repositions the cursor on screen, so that the actual buffer read by yesno() can contain "y\bn" instead of "n". Is it possible for lib/yesno.c to be a little more paranoid and check that there are not embedded characters normally used in terminal editing that would undo the first character?
- -------- Original Message -------- Subject: Strange-Dangerous behaviour in Cygwin Date: Sat, 07 May 2005 17:52:10 +0200 (MET DST) From: Angelo Graziosi <[EMAIL PROTECTED]> To: cygwin@cygwin.com, [EMAIL PROTECTED] I discovered the following strange behaviour in bash and xterm (startxwin) shells: Suppose having alias rm='rm -i' alias cp='cp -i -p' alias mv='mv -i' then rm foo.txt writes rm: remove regular file `foo.txt'? Suppose that I does not want to remove it but mistaking I type "y" rm: remove regular file `foo.txt'? y Before the RETURN, I see the error so I correct, with BACKSPACE, "y" in "n": BACKSPACE does not delete "y" as aspected but it only shifts the cursor on "y" and when I type "n" and then RETURN the file foo.txt is REMOVED! - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCfOsh84KuGfSFAYARAshbAJ9ryQbHUu1+3cAN2pWiMY+ElmeR/wCeMAs3 gp1Dstsp/0gDFvup0MTauJY= =2MBv -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/