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 : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > De la part de Corinna Vinschen > Envoyé : vendredi, 31. octobre 2003 12:08 > À : [EMAIL PROTECTED] > 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:[EMAIL PROTECTED] > 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/