Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (ff7b632f1cf09c5c36675089e73133c8934b0296)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (ff7b632f1cf09c5c36675089e73133c8934b0296)
  • Date: Fri, 4 Jul 2008 10:42:50 -0500

GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 3 +++
config_query_multi.function | 10 ++++++----
2 files changed, 9 insertions(+), 4 deletions(-)

New commits:
commit ff7b632f1cf09c5c36675089e73133c8934b0296
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

config_query_multi.function: don't store an extraneous space

diff --git a/ChangeLog b/ChangeLog
index 0c707e8..f4d8034 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-07-04 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * config_query_multi.function: don't store an extraneous space
+
2008-07-02 David Kowis <dkowis AT shlrm.org>
* perl-cpan/encode-detect: new spell, Used by bugzilla for upgrading
:(
* perl-cpan/module-pluggable: new spell, needed by email-send for
bugzilla
diff --git a/config_query_multi.function b/config_query_multi.function
index be60776..56afd52 100755
--- a/config_query_multi.function
+++ b/config_query_multi.function
@@ -48,20 +48,22 @@ function select_list_sub_multi() {
local msgstr=$3
local default=$4

- local result
+ local __result=() j

- while [[ ! $result ]] ; do
+ while [[ ! $__result ]] ; do
message -n "$msgstr"
read -t $PROMPT_DELAY answer
[[ $answer ]] || answer=$default
answer=$(echo $answer | sed -e 's,\W,,g' -e 's/./& /g')
+ j=0
for answer_parsed in $answer
do
- result="$result $(hash_get $hashname $answer_parsed)"
+ __result[j]="$(hash_get $hashname $answer_parsed)"
+ let j++
done
done
echo
- eval $returnvar=\"$result\"
+ eval $returnvar=\"${__result[@]}\"
}





  • [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (ff7b632f1cf09c5c36675089e73133c8934b0296), Jaka Kranjc, 07/04/2008

Archive powered by MHonArc 2.6.24.

Top of Page