gnats-prs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnats/400: query-pr "printf string" format functionality does not b


From: Yngve Svendsen
Subject: Re: gnats/400: query-pr "printf string" format functionality does not behave as expected
Date: Tue, 24 Sep 2002 23:47:08 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]