From 07073c9bc9ab990f318abb391acab0ae57ba179b Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 9 Jan 2006 00:21:28 +0000 Subject: [PATCH] added bug warning in comments git-svn-id: http://code.autistici.org/svn/backupninja/trunk@309 758a04ac-41e6-0310-8a23-8373a73cc35d --- lib/easydialog.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/easydialog.in b/lib/easydialog.in index 59b0efa..121c56a 100644 --- a/lib/easydialog.in +++ b/lib/easydialog.in @@ -244,6 +244,17 @@ formDisplay() { ) | xargs $DIALOG 2> $temp local status=$? + ## + ## the exit status is meaningless, it is always 0. + ## i can't figure out how to get the exit status of dialog + ## if we do "dialog `arg code`" or "dialog $args", then the quotes + ## get messed up and dialog won't run. + ## if we do "(arg code) | xargs dialog", then the exit status is + ## swallowed by xargs. xargs should return different exit status + ## depending on the exit status of the command run, but i have + ## never been able to get that to work. + ## + REPLY= if [ $status = 0 ]; then IFS=$'' -- 2.30.2