delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/31/11:08:11

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
From: "Philippe Torche" <philippe DOT torche AT jle DOT ch>
To: <cygwin AT cygwin DOT com>
Subject: RE: Testers for new ssh-*-config scripts wanted!
Date: Fri, 31 Oct 2003 17:07:18 +0100
MIME-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
In-Reply-To: <20031031110737.GC3531@cygbert.vinschen.de>
Message-ID: <JLE1MDASSjKtcZ0uOau00000003@jle1.jle.corp>
X-OriginalArrivalTime: 31 Oct 2003 16:07:15.0768 (UTC) FILETIME=[0D58EB80:01C39FC9]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h9VG87qk032449

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

Thanks, Philippe.

> -----Message d'origine-----
> De : cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] 
> De la part de Corinna Vinschen
> Envoyé : vendredi, 31. octobre 2003 12:08
> À : cygwin AT cygwin DOT com
> Objet : RE: Testers for new ssh-*-config scripts wanted!
> 
> On Fri, Oct 31, 2003 at 09:55:04AM +0100, Philippe Torche wrote:
> > Script ssh-host-config works for me, but when I've entered 
> the CYGWIN 
> > env var, I've do a error and type "ntser", then backspace 
> and then the 
> > correct "c" caracters.
> > Thus CYGWIN key in the registry has now "ntser\x08c" 
> instead of "ntsec"!
> > This is caused by the read command!
> 
> Yeah, but that's not a fault of the script but of the shell.  
> Nothing I can do about in the script.  Except if I require 
> the script to run under bash instead of sh, to allow readline support.
> 
> Would that be acceptable?  I have attached a new version of 
> ssh-host-config to this mail, which requires bash now.  If 
> that's not ok, it's easy to revert again.
> 
> I've also attached the two vanilla files ssh_config and 
> sshd_config to put into /etc/defaults/etc. This should 
> simplify testing.
> 
> Changed in this version of ssh-host-config:
> 
> - Require bash.
> - Remove annoying backslashes when echoing a bang (!).
> - Allow /var/log/lastlog to be a directory (But that can again create
>   problems with permissions, Pierre!)
> 
> Please don't forget to test ssh-user-config, too.  Thanks.
> 
> > PS Wait for a "Windows 2003 Server" version
> 
> You know, PGA and PTC.  See wtf ;-)
> 
> Thanks to all testers,
> 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