coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Would a patch adding color to cat(1) be accepted?


From: Eric Blake
Subject: Re: Would a patch adding color to cat(1) be accepted?
Date: Tue, 10 Oct 2017 08:37:24 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 10/10/2017 03:43 AM, Pádraig Brady wrote:

> This idea has some merit, though I'd prefer not to have
> cat needing to deal with CAT_COLORS etc.

I also like the idea, but detest the environment variable.  When we
recently added coloring to 'diff' (see diffutils 3.4), we chose --color
to turn things on, but --palette to specify which colors to use rather
than an environment variable.

In fact, if we want to add 'cat --palette', it might be nice to retrofit
'ls --color --palette' where the command line takes precedence over the
environment variable LS_COLORS.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]