Package: dialog
Version: 1.1-20100119-1
Severity: important

The --add-widget flag is supposed to allow you to chain various
dialog boxes and should exit if you select NO or Cancel at any
level.  However, it simply continues on to the next level regardless
of what options are selected.

Confirmed this bug happens in this version and the version 
(1.0-20060221) on Etch.

Example code:
retval=0
dialog --yesno "1" 0 0 \
       --add-widget --yesno "2" 0 0 \
       --add-widget --yesno "3" 0 0 
case $retval in
  0) echo "Clicked YES" ;;
  1) echo "Clicked NO" ;;
  *) echo "Something else" ;;
esac

With this script, I should be able to select no to the first or
second yes/no question and it should exit right then.  It does not.
It continues on to the end.

Do I have a mistake in my code or is this a bug?

-------------       



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dialog depends on:
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.10.2-5       Embedded GNU C Library: Shared lib
ii  libncursesw5              5.7+20090803-2 shared libraries for terminal hand

dialog recommends no packages.

dialog suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to