public inbox for gnats-prs@sourceware.org
help / color / mirror / Atom feed
* gnats/400: query-pr "printf string" format functionality does not behave as expected
@ 2002-07-25 11:30 duncan.lindley
  0 siblings, 0 replies; 2+ messages in thread
From: duncan.lindley @ 2002-07-25 11:30 UTC (permalink / raw)
  To: pdm-gnats, gnats-prs, bug-gnats

>Number:         400
>Category:       gnats
>Synopsis:       query-pr "printf string" format functionality does not behave as expected
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 21 23:43:51 -0400 2002
>Originator:     Duncan Lindley
>Release:        1.44 (cvs)
>Organization:
Computershare Technology Services
>Environment:
Freebsd 4.6 
>Description:
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


>How-To-Repeat:

>Fix:

>Unformatted:
 

_______________________________________________
Gnats-prs mailing list
Gnats-prs@gnu.org
http://mail.gnu.org/mailman/listinfo/gnats-prs


^ permalink raw reply	[flat|nested] 2+ messages in thread
* Re: gnats/400: query-pr "printf string" format functionality does not behave as expected
@ 2002-09-24 14:46 Yngve Svendsen
  0 siblings, 0 replies; 2+ messages in thread
From: Yngve Svendsen @ 2002-09-24 14:46 UTC (permalink / raw)
  To: gnats-prs, duncan.lindley, pdm-gnats

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-24 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-25 11:30 gnats/400: query-pr "printf string" format functionality does not behave as expected duncan.lindley
2002-09-24 14:46 Yngve Svendsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).