mshow: check isatty for default behavior

pull/1/merge
Christian Neukirchen 8 years ago
parent 0a8f79d057
commit 8672f495c3

@ -513,7 +513,7 @@ main(int argc, char *argv[])
if (f) if (f)
filters = blaze822(f); filters = blaze822(f);
} }
if (argc == optind) { if (argc == optind && isatty(0)) {
char *cur[] = { "." }; char *cur[] = { "." };
blaze822_loop(1, cur, show); blaze822_loop(1, cur, show);
} else { } else {

Loading…
Cancel
Save