From sec@42.org  Sat Jul 19 04:49:19 2003
Return-Path: <sec@42.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5AF3F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Jul 2003 04:49:19 -0700 (PDT)
Received: from ice.42.org (ice.42.org [194.246.250.222])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B0E0B43F93
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Jul 2003 04:49:18 -0700 (PDT)
	(envelope-from sec@42.org)
Received: by ice.42.org (Postfix, from userid 1000)
	id 89BE51C8B1; Sat, 19 Jul 2003 13:49:16 +0200 (CEST)
Message-Id: <20030719114916.89BE51C8B1@ice.42.org>
Date: Sat, 19 Jul 2003 13:49:16 +0200 (CEST)
From: Stefan `Sec` Zehl <sec@42.org>
Reply-To: Stefan `Sec` Zehl <sec@42.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: whois queries with options for the whois-server are difficult
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54633
>Category:       bin
>Synopsis:       whois queries with options for the whois-server are difficult
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 19 04:50:19 PDT 2003
>Closed-Date:    Sat Dec 27 09:37:10 PST 2003
>Last-Modified:  Sat Dec 27 09:37:10 PST 2003
>Originator:     Stefan `Sec` Zehl
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD ice 4.8-STABLE FreeBSD 4.8-STABLE #2: Sat Jul 5 19:52:29 CEST 2003 root@ice:/export/obj/export/src/sys/ICE i386


	
>Description:

Several whois servers (such as whois.ripe.net) accept options with arguments.
whois assumes all commandline options are for itself.
The manpage does not describe how to send multi-word queries
(nor does it mention -- to stop argument processing)

For example 'whois.ripe.net' supports several options (see whois -r help)

>How-To-Repeat:

If I want to query the ripe server for '-i tech-c SZ74-RIPE' you have to
use the not very intutive form of
whois -r -- '-i tech-c SZ74-RIPE'

>Fix:

Either add an example for this to the manpage, or fix whois behaviour not to
sending a query per word (which seems counterintuitive). Linux does send all
options in one query.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ceri 
State-Changed-When: Sat Dec 27 09:35:35 PST 2003 
State-Changed-Why:  
Use of '--' to terminate command line arguments is standard. 
Patches to implement the other functionality described are welcome. 

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