diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 19:23:42 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 19:23:42 +0200 |
commit | 8672f495c3da5399dcceea3c83f4c9b8a105a199 (patch) | |
tree | 6355eb7a7a060291b952a77cf44a336c64a60f49 | |
parent | 0a8f79d057b8c0a9e6be26bc81977268bac8c3c0 (diff) | |
download | mblaze-8672f495c3da5399dcceea3c83f4c9b8a105a199.tar.gz mblaze-8672f495c3da5399dcceea3c83f4c9b8a105a199.tar.xz mblaze-8672f495c3da5399dcceea3c83f4c9b8a105a199.zip |
mshow: check isatty for default behavior
-rw-r--r-- | mshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mshow.c b/mshow.c index 6cfa455..cd8bbef 100644 --- a/mshow.c +++ b/mshow.c @@ -513,7 +513,7 @@ main(int argc, char *argv[]) if (f) filters = blaze822(f); } - if (argc == optind) { + if (argc == optind && isatty(0)) { char *cur[] = { "." }; blaze822_loop(1, cur, show); } else { |