From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14081 invoked from network); 24 Sep 2002 21:46:05 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 24 Sep 2002 21:46:05 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17txVL-0000MF-00; Tue, 24 Sep 2002 17:46:03 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17txUo-0008TM-00 for gnats-prs@gnu.org; Tue, 24 Sep 2002 17:45:30 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17txUm-0008O7-00 for gnats-prs@gnu.org; Tue, 24 Sep 2002 17:45:29 -0400 Received: from patan.sun.com ([192.18.98.43]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17txUl-0008Ny-00 for gnats-prs@gnu.org; Tue, 24 Sep 2002 17:45:27 -0400 Received: from romulus.Holland.Sun.COM ([129.159.201.5]) by patan.sun.com (8.9.3+Sun/8.9.3) with ESMTP id PAA26722; Tue, 24 Sep 2002 15:45:21 -0600 (MDT) Received: from l5kogj48k1qepvi.sun.com ([129.159.115.204]) by romulus.Holland.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v2.2) with ESMTP id XAA02735; Tue, 24 Sep 2002 23:45:19 +0200 (MEST) Message-Id: <5.1.0.14.2.20020924234501.042b1af8@clustra.norway.sun.com> X-Sender: yngves@clustra.norway.sun.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 To: gnats-prs@gnu.org, duncan.lindley@computershare.com.au, pdm-gnats@zamazal.org From: Yngve Svendsen Subject: Re: gnats/400: query-pr "printf string" format functionality does not behave as expected Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: gnats-prs-admin@gnu.org Errors-To: gnats-prs-admin@gnu.org X-BeenThere: gnats-prs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Copies of bug tracking system messages List-Archive: Date: Tue, 24 Sep 2002 14:46:00 -0000 X-SW-Source: 2002-q3/txt/msg00056.txt.bz2 At Sun Jul 21 23:43:51 -0400 2002, Duncan Lindley wrote: >Documentation is thin.. >this is a normal query >bash-2.05a$ query-pr --format summary -d gnats-sandpit >--state="open|analyzed|feedback|suspended|moderate|test" --category=test-1 >2 gnats-ad test-1 open non-criti low computersh index broke >5 Duncan_L test-1 open non-criti low computersh my adsl router arrived >7 gnats-ad test-1 open critical high computersh Attaching a bmp > >This is how i read the docco.. mabye i am wrong >bash-2.05a$ query-pr --format "%s %s %s" State Originator Responsible -d >gnats-sandpit --state="open|analyzed|feedback|suspended|moderate|test" >--category=test-1 >query-pr: Invalid field name or query format %s > >and this seems to work but doesnt return results >bash-2.05a$ query-pr --format Responsible "%F" -d gnats-sandpit >--state="open|analyzed|feedback|suspended|moderate|test" --category=test-1 >query-pr: no PRs matched Ouch. The docs are wrong. The whole format expression needs to be quoted, like this: query-pr --format '"%s %s %s" State Originator Responsible' Yngve Svendsen _______________________________________________ Gnats-prs mailing list Gnats-prs@gnu.org http://mail.gnu.org/mailman/listinfo/gnats-prs