On Thu, Feb 01, 2007 at 12:53:14PM +0100, Gabor Kiss wrote:
> Package: dialog
> Version: 1.0-20060221-2
> Severity: normal
> 
> If I run "dialog --pause foobar 10 20 3" and I don't press any key
> the return status is 254. However this should be 0 according
> the manual.
> Older version (1.0-20050306-1 in i386 Sarge) works well.

That is a simple one (fix attached).

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net
===================================================================
RCS file: RCS/pause.c,v
retrieving revision 1.17
diff -u -r1.17 pause.c
--- pause.c	2006/12/27 00:50:24	1.17
+++ pause.c	2007/02/01 22:45:13
@@ -213,5 +213,5 @@
     dlg_mouse_free_regions();
     dlg_del_window(dialog);
     free(prompt);
-    return (result);
+    return ((result == DLG_EXIT_UNKNOWN) ? DLG_EXIT_OK : result);
 }

Attachment: signature.asc
Description: Digital signature

Reply via email to