Fredrik Fornwall
8 years ago
3 changed files with 34 additions and 29 deletions
@ -1,18 +1,13 @@ |
|||||
diff -u -r ../coreutils-8.22/src/ls.c ./src/ls.c
|
diff -u -r ../coreutils-8.26/src/ls.c ./src/ls.c
|
||||
--- ../coreutils-8.22/src/ls.c 2013-12-04 15:48:30.000000000 +0100
|
--- ../coreutils-8.26/src/ls.c 2016-11-22 15:04:32.000000000 -0500
|
||||
+++ ./src/ls.c 2014-02-14 16:11:48.000000000 +0100
|
+++ ./src/ls.c 2016-11-30 20:27:28.910732105 -0500
|
||||
@@ -2098,11 +2089,13 @@
|
@@ -1749,6 +1749,9 @@
|
||||
} |
} |
||||
} |
} |
||||
|
|
||||
+#ifndef __ANDROID__
|
+ /* Termux patch: Default to colors if terminal. The --color option may override this. */
|
||||
/* Note we leave %5b etc. alone so user widths/flags are honored. */ |
+ print_with_color = isatty(STDOUT_FILENO);
|
||||
if (strstr (long_time_format[0], "%b") |
+
|
||||
|| strstr (long_time_format[1], "%b")) |
while (true) |
||||
if (!abmon_init ()) |
{ |
||||
error (0, 0, _("error initializing month strings")); |
int oi = -1; |
||||
+#endif
|
|
||||
} |
|
||||
|
|
||||
return optind; |
|
||||
|
|
||||
|
Loading…
Reference in new issue