ls(1): Gate the do_color_* definitions behind COLORLS
Pointy hat to: me
This commit is contained in:
parent
041e6eb1c5
commit
517d0a9043
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338028
@ -200,6 +200,7 @@ do_color(void)
|
|||||||
return (do_color_from_env());
|
return (do_color_from_env());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef COLORLS
|
||||||
static bool
|
static bool
|
||||||
do_color_always(const char *term)
|
do_color_always(const char *term)
|
||||||
{
|
{
|
||||||
@ -223,6 +224,7 @@ do_color_auto(const char *term)
|
|||||||
return (strcmp(term, "auto") == 0 || strcmp(term, "tty") == 0 ||
|
return (strcmp(term, "auto") == 0 || strcmp(term, "tty") == 0 ||
|
||||||
strcmp(term, "if-tty") == 0);
|
strcmp(term, "if-tty") == 0);
|
||||||
}
|
}
|
||||||
|
#endif /* COLORLS */
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
|
Loading…
Reference in New Issue
Block a user