X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=lib%2Feasydialog.in;fp=lib%2Feasydialog.in;h=121c56ab67f367cb0074cbc372e37bc5347f87b8;hp=59b0efa296522fab1c1b15d4d479cfc825ce7a85;hb=413a3be0ac354e087d280d17cc5710948b270542;hpb=ca36fe1456ead83d07fafda7225490ebabe15c14 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=$''