delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/31/12:24:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 31 Oct 2003 18:24:15 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Testers for new ssh-*-config scripts wanted!
Message-ID: <20031031172415.GE1259@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20031031110737 DOT GC3531 AT cygbert DOT vinschen DOT de> <JLE1MDASSjKtcZ0uOau00000003 AT jle1 DOT jle DOT corp>
Mime-Version: 1.0
In-Reply-To: <JLE1MDASSjKtcZ0uOau00000003@jle1.jle.corp>
User-Agent: Mutt/1.4.1i

On Fri, Oct 31, 2003 at 05:07:18PM +0100, Philippe Torche wrote:
> Nope,
> 
> read from bash don't reconize control caracters without -e parameter:
> $ read _cygwin
> Ntser[Backspace]c
> $ echo $_cygwin | od -t x1
> 0000000 6e 74 73 65 72 08 63 0a
> 0000010
> 
> BUT OK with "-e"
> 
> $ read -e _cygwin
> Ntser[Backspace]c
> $ echo $_cygwin | od -t x1
> 0000000 6e 74 73 65 63 0a
> 0000006

Erm... when I use bash, read always recognizes the backspace correctly.
*dig dig dig*
Even better, when using /bin/sh (ash), I don't have your above problem
either.  I can change the string and no control code shows up in the
variable's value.  What's different on your machine?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
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