This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Bug in ssmtp-config, and a general note about configurationinterview scripts
- From: John Hardin <johnh at aproposretail dot com>
- To: Cygwin Applications <cygwin-apps at cygwin dot com>
- Date: Thu, 19 Aug 2004 08:54:37 -0700
- Subject: Bug in ssmtp-config, and a general note about configurationinterview scripts
- Organization: Apropos Retail Management Systems, Inc.
All:
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.
The bug is using "read VARNAME" to accept input from the user.
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.
--
John Hardin KA7OHZ <johnh@aproposretail.com>
Internal Systems Administrator voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
There is no problem that cannot be solved by the appropriate
application of high explosives.