diff options
-rw-r--r-- | ls.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -17,6 +17,7 @@ * */ +#define _XOPEN_SOURCE 700 #include <stdio.h> #include <sys/stat.h> #include <unistd.h> @@ -541,6 +542,10 @@ main (int argc, char **argv) return 1; } } + + if (!isatty(STDOUT_FILENO)) { + display = SINGLE; + } if (optind >= argc) { strcpy(dirlist[0].path, "."); |