Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <4280AF6A.7010704@byu.net> Date: Tue, 10 May 2005 06:56:10 -0600 From: Eric Blake User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: Angelo Graziosi CC: cygwin AT cygwin DOT com Subject: Re: Strange-Dangerous behaviour in Cygwin References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Angelo Graziosi on 5/9/2005 1:50 PM: > > WHY an "xterm setup" if, as I wrote, the problems are present in standard > bash shell, i.e. that launched with cygwin.bat. Chris apologized for misreading your email and misleading this conversation: http://sources.redhat.com/ml/cygwin/2005-05/msg00393.html > > I have reinstalled Cygwin, installing only the BASE category: NO "xterm", > NO XORG, NO RXVT. ONLY BASE PACKAGES. > > The problems are PRESENT in any case!!! What are your stty settings? What gets sent to the terminal when you type backspace? I have the following: $ [ctrl-v][backspace]^H[ctrl-c] $ stty erase ^H $ stty speed 38400 baud; line = 0; erase = ^H; - -imaxbel - -echoe -echok -echoctl -echoke To test that setting your stty erase character to the same as the backspace character, try: $ stty erase ^H $ cat > foo # When all stty settings are correct, y[backspace]n [ctrl-d] $ cat -A foo # then backspace consumes y before output appears n$ $ stty erase ^? # When the erase setting is wrong for the terminal, $ cat > foo y[backspace]n [ctrl-d] $ cat -A foo y^Hn$ # the backspace appears on the output Now my question - why can't cygwin have sane defaults for the tty, so that this question doesn't continue to pop up? - -- 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 iD8DBQFCgK9p84KuGfSFAYARAtcdAJ9p1rYwYEpyGQXPuRN/FSt7sCAysQCg0WIb hR75DFDONfGsqHr6GAYxS4k= =Wjqq -----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/