See the man pages: "... and return (either in the return code, or on standard output) the users input."
The answer to "--question" is returned in the return code, not in standard output. user@ubuntu:~$ zenity --question --title="Answer the question." --text="Yes or No?" # answering yes user@ubuntu:~$ echo $? 0 user@ubuntu:~$ zenity --question --title="Answer the question." --text="Yes or No?" # answering no user@ubuntu:~$ echo $? 1 ** Changed in: zenity (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to zenity in Ubuntu. https://bugs.launchpad.net/bugs/2035114 Title: zenity 3.24.1 --question argument does not return a value in ubuntu 22.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/2035114/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs