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 Date: Fri, 31 Oct 2003 18:24:15 +0100 From: Corinna Vinschen 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/