File: query-pr.1

package info (click to toggle)
ircii 20190117-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,788 kB
  • sloc: ansic: 44,172; makefile: 863; sh: 524; perl: 291
file content (308 lines) | stat: -rw-r--r-- 6,658 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
.\" @(#) $eterna: query-pr.1,v 1.3 2001/08/12 15:42:27 mrg Exp $
.\"
.\" Copyright (c) 1993 Free Software Foundation, Inc.
.\" See section COPYING for conditions for redistribution .in +0.9i
.TH query-pr 1 "October 1993" "GNATS 3.96" "GNATS User Utilities"
.de BP
.sp
.ti -.2i
\(**
..
.SH NAME
query-pr \- query problem reports in the 
.B GNATS
database
.SH SYNOPSIS
.hy 0
.na
.B query\-pr
.RS
[
.B \-c \fIcategory\fB | \-\-category=\fIcategory\fB
]
.br
[
.B \-s \fIstate\fB | \-\-state=\fIstate\fB
]
.br
[
.B \-r \fIresponsible\fB | \-\-responsible=\fIresponsible\fB
]
.br
[
.B \-S \fIsubmitter\fB | \-\-submitter=\fIsubmitter\fB
]
.br
[
.B \-x | \-\-skip\-closed
]
.br
[
.B \-C [\fIyes\fB|\fIno\fB] | \-\-confidential[=\fIyes\fB|\fIno\fB]
]
.br
[
.B \-e \fIseverity\fB | \-\-severity=\fIseverity\fB
]
.br
[
.B \-p \fIpriority\fB | \-\-priority=\fIpriority\fB
]
.br
[
.B \-O \fIname\fB | \-\-originator=\fIname\fB
]
.br
[
.B \-t \fItext\fP | \-\-text=\fItext\fP
]
.br
[
.B \-m \fItext\fP | \-\-multitext=\fItext\fP
]
.br
[
.B \-R | \-\-restricted
]
[
.B \-E | \-\-entire
]
.br
[
.B \-F | \-\-full
] [
.B \-q | \-\-summary
] [
.B \-i | \-\-sql
]
.br
[
.B \-P | \-\-print\-path
]
.br
[
.B \-d \fIdirectory\fB | \-\-directory=\fIdirectory\fB
]
.br
[
.B \-o \fIoutfile\fB | \-\-output=\fIoutfile\fB
]
.br
[
.B \-V | \-\-version
]
.br
[
.B \-h | \-\-help 
]
.br
[
.I gnats-id
.I .\|.\|.
]

.ad b
.hy 1
.SH DESCRIPTION
Queries the 
.B GNATS
database according to options and displays Problem Reports on standard output.
If you specify particular PR numbers (with the
.IR gnats-id .\|.\|.
arguments),
.B query\-pr
restricts its search to only those PRs.
Using
.B query\-pr
with the
.B \-E
or
.B \-\-entire
options displays a summary of every PR in the database.
.LP
All options are connected with a logical
.BR AND .
For example,
.RS
.B query\-pr \-\-category=\fIcategory\fB \-\-responsible=\fIresponsible\fR
.RE
only prints PRs which have a 
.B >Category:
field of
.I category
and a 
.B >Responsible:
field of
.IR responsible .
.SH OPTIONS
.TP 0.5i
.B \-c \fIcategory\fB, \-\-category=\fIcategory\fB
Search only for PRs with a
.B >Category:
field of 
.IR category .
.TP
.B \-s \fIstate\fB, \-\-state=\fIstate\fB
Search only for PRs with a
.B >State:
field of 
.IR state .
.TP
.B \-x, \-\-skip\-closed
Search only for PRs in states other than
.IR closed .
.TP
.B \-r \fIresponsible\fB, \-\-responsible=\fIresponsible\fB
Search only for PRs with a
.B >Responsible:
field of 
.IR responsible .
.TP
.B \-S \fIsubmitter\fB, \-\-submitter=\fIsubmitter\fB
Search only for PRs with a
.B >Submitter\-Id:
field of 
.IR submitter .
.TP
.B \-C [\fIyes\fB|\fIno\fB], \-\-confidential[=\fIyes\fB|\fIno\fB]
Search only for PRs with a 
.B >Confidential:
field of either
.I yes
or 
.IR no ,
respectively.  If this option is not given, all PRs will be eligible
for the search, regardless of their confidentiality.
.TP
.B \-e \fIseverity\fB, \-\-severity=\fIseverity\fB
Search only for PRs with a
.B >Severity:
field of
.IR severity .
.TP
.B \-p \fIpriority\fB, \-\-priority=\fIpriority\fB
Search only for PRs with a
.B >Priority:
field of
.IR priority .
.TP
.B \-O \fIname\fB, \-\-originator=\fIname\fP
Search for \fIname\fP in the
.B >Originator:
field of each PR.  \fIname\fP need only be enough to uniquely identify the
person.  For example, to find "Steve Williams" you could use a
\fIname\fP of "Steve W".
Use another search option (e.g.
.B \-\-state\c
\&), to speed the search.  Using
.B \-O
by itself can be slow with a large database.  You must enclose the
name with double-quotes to make sure your shell passes it as a single
string, and not as separate arguments to
.BR query\-pr .
.TP
.B \-t \fItext\fP, \-\-text=\fItext\fP
Search single-line text fields in all PRs for the regular 
expression \fItext\fP.
.TP
.B \-m \fItext\fP, \-\-multitext=\fItext\fP
Search multiple-line text fields in all PRs for the regular
expression \fItext\fP.
.TP
.B \-R, \-\-restricted
Omit from the search any PR marked
.BR ">Confidential: yes" .
This is equivalent to specifying
.BR \-\-confidential=no .
This also disallows the use of the options
.br
.BI --outfile= outfile
and
.BI --directory= directory\fR.
.TP
.B \-F, \-\-full
Prints the full Problem Report rather than just a summary.
.TP
.B \-q, \-\-summary
Give a short summary line for PRs. 
.TP
.B \-i, \-\-sql
Prints data in a format readable by a relational database (see
the GNATS manual
.I Keeping Track
for a full explanation).
.TP
.B \-P, \-\-print\-path
Print the path used to find each PR.
.TP
.B \-d \fIdirectory\fB, \-\-directory=\fIdirectory\fB
Changes the search directory to 
.IR directory .
.TP
.B \-o \fIoutfile\fB, \-\-output=\fIoutfile\fB
Print all output to
.I outfile
rather than to the standard output.
.TP
.B \-V, \-\-version
Prints the version number of
.BR query\-pr .
.TP
.B \-h, \-\-help 
Prints a brief usage summary.
.SH QUERY BY MAIL
.B query-pr
can also be accessed by electronic mail, if your version
of GNATS is configured for this.  To use this feature, simply send
mail to the address 
.BI query-pr@ your-site
with command line arguments or options in the 
.B Subject:
line of the mail header.  GNATS replies to your mail with the results
of your query.  The default settings for the
.B query-pr
mail server are shown below; to override the
.B --state
parameter, specify
.BI --state= state
in the
.B Subject:
line of the mail header.  You can not query on confidential Problem
Reports by mail.
.TP 1i
.B --restricted --state="open|analyzed|feedback|suspended"
.SH "SEE ALSO"
.I Keeping Track: Managing Messages With GNATS
(also installed as the GNU Info file
.BR gnats.info )
and
.I Reporting Problems Using send-pr
(also installed as the GNU Info file
.BR send-pr.info ).
.LP
.BR gnats (l),
.BR send-pr (1),
.BR edit-pr (1),
.BR file-pr (8),
.BR queue-pr (8),
.BR mkcat (8),
.BR rmcat (8),
.BR gen-index (8),
.BR mkdist (8).
.SH COPYING
Copyright (c) 1993 Free Software Foundation, Inc.
.PP
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice
are preserved on all copies.
.PP
Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.
.PP
Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be included in
translations approved by the Free Software Foundation instead of in
the original English.