Package: zenity Version: 3.30.0-2 Severity: normal Tags: a11y upstream Dear Maintainer,
When calling Zenity with --question the return values SHOULD be 0 or 1 (or ever-increasing numbers if buttons are added). However, the return value is either nothing or 0. Example: someVar=$(zenity --question [blah] [blah]) && echo $someVar OR zenity --question [blah blah] && echo $? Please note: I have tried the latest Zenity version from sid and the problem persists. This can affect shell scripts for which Zenity was designed. There is an obvious workaround, [[ -z "$someVar" ]], the trouble will come when/if this is fixed. The better workaround, when considering more than two buttons as well, is a case statement so that any return except what which is fixed or unfixed, is handled instead. It will obviously still cause a little conflict, but it needs to be fixed, the sooner, the better. Obviously this an upstream problem, but it's an easy fix. Regards, J -- System Information: Debian Release: 10.10 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-0.bpo.8-amd64 (SMP w/12 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8), LANGUAGE=en_ZA:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages zenity depends on: ii libc6 2.28-10 ii libgdk-pixbuf2.0-0 2.38.1+dfsg-1 ii libglib2.0-0 2.58.3-2+deb10u3 ii libgtk-3-0 3.24.5-1 ii libnotify4 0.7.7-4 ii libpango-1.0-0 1.42.4-8~deb10u1 ii libwebkit2gtk-4.0-37 2.30.6-1~deb10u1 ii libx11-6 2:1.6.7-1+deb10u2 ii zenity-common 3.32.0-6 zenity recommends no packages. zenity suggests no packages. -- no debconf information