Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 7858] config_query_string time-out

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 7858] config_query_string time-out
  • Date: 22 Jan 2006 19:24:09 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=7858





------- Additional Comments From acedit AT armory.com 2006-01-22 13:24 -------
the function misuses the query_string function. Query_string presents the user
with the question, then waits for a response. The config_query_long_string
function first does a query_string, then does two subsequent reads. It takes
the
results from the two subsequent reads and uses that as the result. So what
happens is the user is prompted for the question, then types something,
presses
return, nothing happens so they press return again, which sets the answer to
newline.

Here is the code

query_string ANSWER "$2" "$3"
read -t $DELAY -n 1 ANSWER_first
if [[ $ANSWER_first ]] ; then
read ANSWER_rest
fi
ANSWER="${ANSWER_first}${ANSWER_rest}"
config_set_option "$1" "$ANSWER"

Just need to move the read -n 1 and reads into query_string.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page