[Bug 257886] ls: don't check color env variables if compiled with WITHOUT_LS_COLORS="YES"

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 16 Aug 2021 15:14:30 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257886

            Bug ID: 257886
           Summary: ls: don't check color env variables if compiled with
                    WITHOUT_LS_COLORS="YES"
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs_at_FreeBSD.org
          Reporter: mt-bugs_at_markoturk.info

Created attachment 227246
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227246&action=edit
patch

Hi,

if I compile with WITHOUT_LS_COLORS="YES", and if I have COLORTERM variable
set, ls will complain each time:
ls: color support not compiled in

There is no way to suppres the message, it is printed every time.

If ls is compiled with no color support, it shouldn't even check for color env
variables. The attached patch fixes that.

Regards,
Marko

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Mon Aug 16 2021 - 15:14:30 UTC

Original text of this message