This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: Bug in ssmtp-config, and a general note about configurationinterview scripts
- From: Robert R Schneck-McConnell <schneck at math dot berkeley dot edu>
- To: cygwin-apps at cygwin dot com
- Date: Sat, 21 Aug 2004 22:01:05 -0400
- Subject: Re: Bug in ssmtp-config, and a general note about configurationinterview scripts
- References: <1092930877.32441.74.camel@johnh.ar-corp.com>
John Hardin wrote:
> Just ran across a bug in ssmtp-config that brings up an issue in
> build-a-config-file interview scripts in general:
>
> If the user makes an error typing in a config setting, and (naturally
> enough) hits the backspace key to fix it, ssmtp-config (and probably
> many other similar scripts as well) will embed a literal backspace in
> the configuration setting - in other words, they're using raw input
> rather than cooked.
I'll note that the bug does not manifest (for me) using rxvt.
> I would like to suggest to all who are writing interview scripts that
> they should use "read -e VARNAME" instead of "read VARNAME" to get data
> from the user. "read -e" uses the readline library which, among other
> things, properly handles backspaces.
I'll make this change and submit a new package in a week or so, unless
anyone can think of any problem with this approach.
Robert