summaryrefslogtreecommitdiffstats
path: root/config_query_multi.function
diff options
context:
space:
mode:
authorGeorge Sherwood2008-11-29 20:53:42 -0600
committerGeorge Sherwood2008-11-29 20:53:42 -0600
commite8a12611b38282914ec1a80fed20296b79baa2e1 (patch)
tree0d06c36210ac6323159337a6e2810222640d526d /config_query_multi.function
parente0d1cf3af7ae0661cb56fb580bafc41e46380bfd (diff)
config_query_multi.function: Added patch from bug #14914.
Already added to test
Diffstat (limited to 'config_query_multi.function')
-rwxr-xr-xconfig_query_multi.function4
1 files changed, 3 insertions, 1 deletions
diff --git a/config_query_multi.function b/config_query_multi.function
index 56afd52..ca9d27f 100755
--- a/config_query_multi.function
+++ b/config_query_multi.function
@@ -49,6 +49,7 @@ function select_list_sub_multi() {
local default=$4
local __result=() j
+ local answer answer_parsed
while [[ ! $__result ]] ; do
message -n "$msgstr"
@@ -101,6 +102,7 @@ function real_config_query_multi () {
echo -e "[[ ${QUERY_COLOR}${QUESTION}${DEFAULT_COLOR} -> '${QUERY_COLOR}$ANSWER${DEFAULT_COLOR}' ]]"
else
# if there was an answer before, find it
+ local stuff=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z)
local defaults default default_num foo
config_get_last_option "$VARIABLE" default
[[ $default ]] || default="$1"
@@ -108,7 +110,7 @@ function real_config_query_multi () {
let i=0
for foo in "$@"; do
if [[ "$defaults" == "$foo" ]] ; then
- default_num="$default_num $i"
+ default_num="$default_num ${stuff[$i]}"
fi
let i++
done