Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2021 15:14:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 257886] ls: don't check color env variables if compiled with WITHOUT_LS_COLORS="YES"
Message-ID:  <bug-257886-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257886

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

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

Hi,

if I compile with WITHOUT_LS_COLORS=3D"YES", and if I have COLORTERM variab=
le
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257886-227>