aboutsummaryrefslogtreecommitdiff
path: root/handlers/easydialog.sh
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-07-06 08:03:31 +0000
committerElijah Saxon <elijah@riseup.net>2005-07-06 08:03:31 +0000
commite8cf41e99e1650ba8c8f187ae5e3ca3c0fa56ee1 (patch)
treeb64b17053293f05252cf3833f553f4fa91c6f344 /handlers/easydialog.sh
parentd87e87882fa8946be61740636208fd8a6457816a (diff)
downloadbackupninja-e8cf41e99e1650ba8c8f187ae5e3ca3c0fa56ee1.tar.gz
backupninja-e8cf41e99e1650ba8c8f187ae5e3ca3c0fa56ee1.tar.bz2
fixed handling of * in easydialog.
added .disabled
Diffstat (limited to 'handlers/easydialog.sh')
-rw-r--r--handlers/easydialog.sh25
1 files changed, 13 insertions, 12 deletions
diff --git a/handlers/easydialog.sh b/handlers/easydialog.sh
index ce7d31e..1ae3c83 100644
--- a/handlers/easydialog.sh
+++ b/handlers/easydialog.sh
@@ -164,19 +164,20 @@ displayForm() {
local form=
local xpos=1
- for ((i=0; i < $_form_items ; i++)); do
- label=${_form_labels[$i]}
- text=${_form_text[$i]}
- if [ "$text" == "" ]; then
- text='_empty_'
- fi
- form=`echo -e "$form $label $xpos 1" $text "$xpos $max_length 30 30"`
- let "xpos += _form_gap"
- done
-
- $DIALOG --form "$_form_title" 0 0 20 $form 2> $temp
+ (
+ echo -n -e "--form '$_form_title' 0 0 20"
+ for ((i=0; i < $_form_items ; i++)); do
+ label=${_form_labels[$i]}
+ text=${_form_text[$i]}
+ if [ "$text" == "" ]; then
+ text='_empty_'
+ fi
+ echo -n -e "$form $label $xpos 1 '$text' $xpos $max_length 30 30"
+ let "xpos += _form_gap"
+ done
+ ) | xargs $DIALOG 2> $temp
local status=$?
- [ $status = 0 ] && REPLY=$(cat $temp)
+ [ $status = 0 ] && REPLY=`cat $temp`
rm -f $temp
return $status
}