From jszumiec@delta.kraksystem.pl  Thu Nov 20 15:39:58 2003
Return-Path: <jszumiec@delta.kraksystem.pl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4E00216A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Nov 2003 15:39:58 -0800 (PST)
Received: from delta.kraksystem.pl (delta.kraksystem.pl [217.97.202.11])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DEEAF43F85
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Nov 2003 15:39:56 -0800 (PST)
	(envelope-from jszumiec@delta.kraksystem.pl)
Received: from localhost (unknown [127.0.0.1])
	by delta.kraksystem.pl (Postfix) with ESMTP id 720572A424
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Nov 2003 23:38:52 +0000 (GMT)
Received: from delta.kraksystem.pl ([127.0.0.1])
 by localhost (delta.kraksystem.pl [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 85436-09 for <FreeBSD-gnats-submit@freebsd.org>;
 Fri, 21 Nov 2003 00:38:50 +0100 (CET)
Received: by delta.kraksystem.pl (Postfix, from userid 1001)
	id A214A2A41D; Fri, 21 Nov 2003 00:38:50 +0100 (CET)
Message-Id: <20031120233850.A214A2A41D@delta.kraksystem.pl>
Date: Fri, 21 Nov 2003 00:38:50 +0100 (CET)
From: Jan Szumiec <jszumiec@kraksystem.pl>
Reply-To: Jan Szumiec <jszumiec@kraksystem.pl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: whois not parsing queries correctly (not logically anyway)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59533
>Category:       misc
>Synopsis:       whois not parsing queries correctly (not logically anyway)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 20 15:50:22 PST 2003
>Closed-Date:    Thu Nov 20 22:46:29 PST 2003
>Last-Modified:  Thu Nov 20 22:46:29 PST 2003
>Originator:     Jan Szumiec
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
N/A
>Environment:
System: FreeBSD delta.kraksystem.pl 4.9-RELEASE FreeBSD 4.9-RELEASE #11: Thu Oct 30 00:50:19 CET 2003 jszumiec@delta.kraksystem.pl:/usr/obj/usr/src/sys/BLUE i386


	
>Description:
	Let's say I want to obtain all networks connected to AS5617.
	I should do the folllowing:

		whois -r "-i origin AS5617"

	Instead, I get the following:
		
		> whois -r "-i origin AS5617"
		whois: illegal option --
		usage: whois [-adgilmpQrR6] [-c country-code | -h hostname] name ...

	I know that this is how this version of whois works, but it
	should...

>How-To-Repeat:
	> whois -r "-i origin AS5617"
        whois: illegal option --
        usage: whois [-adgilmpQrR6] [-c country-code | -h hostname]
	name ...

>Fix:
	00:32:55,@kontakt:~ > telnet whois.ripe.net 43
Trying 2001:610:240:0:193::202...
telnet: connect to address 2001:610:240:0:193::202: No route to host
Trying 193.0.0.135...
Connected to whois.ripe.net.
Escape character is '^]'.
% This is the RIPE Whois server.
% The objects are in RPSL format.
%
% Rights restricted by copyright.
% See http://www.ripe.net/ripencc/pub-services/db/copyright.html

-i origin AS5617
route:        80.48.0.0/13
descr:        TPNET
descr:        for abuse: abuse@tpnet.pl
origin:       AS5617
mnt-by:       AS5617-MNT
changed:      nabn@tpnet.pl 20030228
source:       RIPE


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Thu Nov 20 22:43:42 PST 2003 
State-Changed-Why:  
from getopt(3): 

``The interpretation of options in the argument list may be cancelled by 
the option `--' (double dash) which causes getopt() to signal the end 
of argument processing and return -1.'' 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59533 
>Unformatted:
