Package: whiptail
Version: 0.52.14-11.1
Severity: minor
Tags: patch

Dear Maintainer,
I have found that the whiptail(1) manual page contains an unreal exit code at 
the "DIAGNOSTICS" section.
It says that the exit code on "ESC" keystroke is -1, however it is 255:
        # whiptail --msgbox test 0 0
        *ESC keystroke*
        # echo $?
        255
..

I attached a patch file which fixes this error.


-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages whiptail depends on:
ii  libc6        2.13-38+deb7u1
ii  libnewt0.52  0.52.14-11.1
ii  libpopt0     1.16-7
ii  libslang2    2.2.4-15

whiptail recommends no packages.

whiptail suggests no packages.

-- no debconf information
--- whiptail.1.old	2014-04-19 16:06:29.423939755 +0200
+++ whiptail.1.new	2014-04-19 16:04:55.415941235 +0200
@@ -292,7 +292,7 @@
 .B whiptail
 is exited by pressing the
 .I ESC
-key, the exit status is -1.
+key, the exit status is 255.
 .SH AUTHOR
 Based on the man page for dialog(1) by:
 .LP

Reply via email to