bug-bash
[Top][All Lists]
Advanced

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

Re: Feature request: Enable possibility of colored stderr output


From: Chet Ramey
Subject: Re: Feature request: Enable possibility of colored stderr output
Date: Mon, 14 Sep 2020 09:52:46 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.12.0

On 9/13/20 5:59 AM, A M wrote:
> Hello, I would like to submit a feature request/suggestion on Bash. (I was
> told submitting to this mailing list was the right way to do it.)
> 
> Feature request: Enable possibility of colored stderr output.

Let's separate the two cases: bash coloring its own output to stderr, which
is usually warnings and errors, and output to stderr by processes bash runs.

We can discard the latter case right away -- bash doesn't, and shouldn't,
have any effect on another process's stderr other than redirecting it.
That's something that should be left to the other process. If you really
want it, you can do things outside of bash itself to achieve it.

The first case is different: would there be any advantage to having bash
color its own error messages? And how about other information that gets
printed to stderr, like warnings or job status messages?


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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