[Reportbug-maint] Bug#329054: 'reportbug' won't play nice with 'yes N' pipe.
agcosta at gis.net
Sun Mar 14 07:12:23 UTC 2010
On Sat, 13 Mar 2010 18:01:58 +0100
Sandro Tosi <morph at debian.org> wrote:
> Please use
> $ querybts --buglist xpdf
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
> 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.
More information about the Reportbug-maint