Add `new` to list of commands that should not default to using the pager.
authorW. Trevor King <wking@drexel.edu>
Sat, 25 Feb 2012 17:53:17 +0000 (12:53 -0500)
committerW. Trevor King <wking@drexel.edu>
Sat, 25 Feb 2012 17:53:17 +0000 (12:53 -0500)
commit2c9ae15f53aef57d28091b237c193c653c6e80dd
treea1ce3ffe68211ffe5dbc1104565910bd4b2d7f1b
parent17a470e5672d2f4ec2fc6d757a52612c21753ee8
Add `new` to list of commands that should not default to using the pager.

If the command is run in the pager, access to stdin is tricky, so I
avoid it by default.  I'd just missed the fact that `new -` used
stdin, which caused

  https://bugzilla.redhat.com/show_bug.cgi?id=751473

  $ be new -
  Traceback (most recent call last):
    ...
    File "/usr/lib/python2.7/site-packages/libbe/command/new.py", line 89, in _run
      summary = self.stdin.readline()
    ...
    File "/usr/lib64/python2.7/codecs.py", line 473, in read
      newdata = self.stream.read(size)
  IOError: [Errno 9] Bad file descriptor
libbe/ui/command_line.py