delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/07/12:22:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <427CEB21.2010302@byu.net>
Date: Sat, 07 May 2005 10:21:53 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: bug-coreutils AT gnu DOT org, cygwin AT cygwin DOT com
Subject: [Fwd: Strange-Dangerous behaviour in Cygwin]
X-IsSubscribed: yes

-----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 <Angelo DOT Graziosi AT roma1 DOT infn DOT it>
To: cygwin AT cygwin DOT com, corinna-cygwin AT cygwin DOT com

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             ebb9 AT byu DOT net
-----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019