There's a problem with the report:

>dialog=1.1-20100428-1 (lenny) does this correct; it gives
>
>    a-1 a-2

I checked the history of the relevant code (dlg_add_quoted in util.c and
call_checklist in dialog.c) and see that I added the quoting feature in
mid-2008 - in its present form.

I just verified that there was no other factor that I'm overlooking by
recompiling 20100428 and running the example with that - and get
single-quoting for the output.

I also have Lenny running - it uses 1.1-20080316 (preceding the
quoting change).

However, something changed (not when the report says it did).

The particular change that appears to be of concern is the change
in dialog.c:

REV:1.174               dialog.c            2008/08/19 23:21:36       tom
tags:            t20100113a, t20100113, t20100112, t20100110, t20080819

   override the dialog_vars.quoted for checklist to set it true if there's
   no --separate-output

--- dialog.c    2008/06/21 12:25:13     1.173
+++ dialog.c    2008/08/19 23:21:36     1.174
@@ -1,5 +1,5 @@
 /*
- * $Id: dialog.c,v 1.172 2008/06/20 21:28:41 tom Exp $
+ * $Id: dialog.c,v 1.173 2008/06/21 12:25:13 tom Exp $
  *
  *  cdialog - Display simple dialog boxes from shell scripts
  *
@@ -761,7 +761,7 @@
     int code;
     bool save_quoted = dialog_vars.quoted;
 
-    dialog_vars.quoted = TRUE;
+    dialog_vars.quoted = !dialog_vars.separate_output;
     *offset_add = 5 + tags * CHECKBOX_TAGS;
     code = dialog_checklist(t,
                            av[1],

At the moment I'm mulling over that change, to recall why it was needed.

-- 
Thomas E. Dickey <dic...@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature

Reply via email to