On Sat, 13 Mar 2010 18:01:58 +0100
Sandro Tosi <[email protected]> wrote:
> Please use
>
> $ querybts --buglist xpdf
> (......)
Thanks!
Note for BTS readers: when this bug was filed (2005) the '--buglist'
option didn't do the good stuff offered above. In 2009, C. Chenet
wrote a nice patch:
/usr/bin/querybts: Could provide option to list all bugs without user
interaction
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=222621#25
> I don't plan to support piping "yes" to reportbug in the general case:
> if you need something specific to be automated, then file a wishlist
> bug about it.
About this 'specific/general' input tradeoff... was there a reason for
not using ordinary standard input? Some prompts are simple stuff like:
Is the bug you found listed above [y|N|b|m|r|q|s|f|?]?
...where the input is a letter or number followed by <Enter>. Nothing a
Bourne shell 'read' command couldn't handle.
Python people say it does stdio:
How do I read from standard input using a Python script?
Just read from sys.__stdin__ (aka sys.stdin).. for example,
sys.stdin.read()
sys.stdin is a file object, and can be operated on as such.
http://www.yak.net/fqa/77.html
http://en.wikibooks.org/wiki/Python_Programming/Input_and_output#Standard_File_Objects
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]