Package: whois
Version: 5.0.16
Severity: normal

The return code for whois is not consistent between .com and .org domains:

  $ whois google.com > /dev/null
  $ echo $?
  0

  $ whois debian.org > /dev/null
  $ echo $?
  1

Despite the fact that it's not documented in the manpage, it looks like
whois is designed to return 0 when domains exist and 1 when they don't
exist. This works for most TLDs, but not .org.

Cheers,
Francois

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.2-grsec+ (SMP w/2 CPU cores)
Locale: LANG=fr_CA.utf8, LC_CTYPE=fr_CA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages whois depends on:
ii  libc6     2.13-33
ii  libidn11  1.25-2

whois recommends no packages.

whois 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