peek(1): better error on piping
This commit is contained in:
parent
7d174c1f7c
commit
3bfdc62035
@ -88,7 +88,8 @@ int main(int argc, char *argv[]){
|
|||||||
if (!allow_nonterminals && isatty(STDIN_FILENO) != 1) {
|
if (!allow_nonterminals && isatty(STDIN_FILENO) != 1) {
|
||||||
(void)fprintf(
|
(void)fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"%s: Must be run in a terminal (option -i skips this check)\n",
|
"%s: Must be run in a terminal (specify -i to skip this"
|
||||||
|
" check)\n",
|
||||||
argv[0]
|
argv[0]
|
||||||
);
|
);
|
||||||
return EX_USAGE;
|
return EX_USAGE;
|
||||||
|
Loading…
Reference in New Issue
Block a user