Add a note and message on waiting on input from stdin

This commit is contained in:
Arun Prakash Jana 2017-03-31 22:39:37 +05:30
parent f25f67bfc1
commit 84694f95ce
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,7 @@
- [Related projects](#related-projects)
- [Mentions](#mentions)
- [Examples](#examples)
- [Known issues](#known-issues)
- [Collaborators](#collaborators)
### Introduction
@ -487,6 +488,12 @@ NOTE: This flexibility is not exposed in the program.
$ buku -h
$ man buku
### Known issues
1. `buku` waits until its input is closed when not started in a tty. For example, the following hangs:
$ cat | buku
### Collaborators
- [Arun Prakash Jana](https://github.com/jarun)

View File

@ -2520,6 +2520,7 @@ def setup_logger(logger):
def piped_input(argv, pipeargs=None):
if not sys.stdin.isatty():
pipeargs += argv
print('waiting for input')
for s in sys.stdin.readlines():
pipeargs += s.split()