Allow Invoking `zstd --list` When `stdin` is not a `tty`
authorW. Felix Handte <w@felixhandte.com>
Fri, 29 Jun 2018 19:33:44 +0000 (15:33 -0400)
committerAlexandre Mestiashvili <mestia@debian.org>
Fri, 12 Oct 2018 08:00:27 +0000 (09:00 +0100)
commit1b9d2f7ad80c7d8a16197aa26863854d49b477eb
tree9f786f14b0ed7af9e521c6b413026e2b4d8ffa18
parentff33f9767f4a1169e865b9689da90ededfc97c41
Allow Invoking `zstd --list` When `stdin` is not a `tty`

Also now returns an error when no inputs are given.

New proposed behavior:

```
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l; echo $?
No files given
1
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l Makefile.zst; echo $?
Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
     1      0     3.08 KB      10.92 KB  3.544  XXH64  Makefile.zst
0
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l <Makefile.zst; echo $?
zstd: --list does not support reading from standard input
No files given
1
felix@odin:~/prog/zstd (list-stdin-check)$ ./zstd -l Makefile.zst <Makefile.zst; echo $?
Frames  Skips  Compressed  Uncompressed  Ratio  Check  Filename
     1      0     3.08 KB      10.92 KB  3.544  XXH64  Makefile.zst
0
felix@odin:~/prog/zstd (list-stdin-check)$
```

Gbp-Pq: Name 0001-Allow-Invoking-zstd-list-When-stdin-is-not-a-tty.patch
programs/fileio.c