FS#59517 - [sysstat] Enable color output of sar(1) command

Attached to Project: Community Packages
Opened by Haochuan Guo (wooparadog) - Friday, 03 August 2018, 09:06 GMT
Last edited by Christian Rebischke (Shibumi) - Friday, 10 August 2018, 08:07 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Christian Rebischke (Shibumi)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

In other distributions, they'll add a sysstat.sh to `/etc/profile.d/sysstat.sh` with:

```
# Enable color output of sar(1) command
if [ -z "${S_COLORS-}" ]; then
S_COLORS=auto
export S_COLORS
fi
```

Maybe it can also be added to archlinux?

Additional info:
None


Steps to reproduce:

1. `iostat` no color outputs.
2. create the file in description.
3. `iostat` will have color outputs.
This task depends upon

Closed by  Christian Rebischke (Shibumi)
Friday, 10 August 2018, 08:07 GMT
Reason for closing:  Won't implement
Comment by Earnestly (Earnest) - Friday, 03 August 2018, 09:19 GMT
Why not export this environment as part of your profile if you want it personally? There are many environments which software exposes which let users customise or control their operation. I'm unsure why Arch Linux should deviate from upstream in this fairly trivial case and override the users in choosing what they do.
Comment by Haochuan Guo (wooparadog) - Friday, 03 August 2018, 09:59 GMT
IMO, it's that many users don't know this option.

But on a second thought, surely there's no need in this case to add more behaviors than the upstream.
It's a fairly clean package(other than one patch).
Comment by Doug Newgard (Scimmia) - Wednesday, 08 August 2018, 16:45 GMT
Sounds like a bad idea to me, too, but we'll see what the maintainer thinks.
Comment by Christian Rebischke (Shibumi) - Friday, 10 August 2018, 08:07 GMT
I dislike the idea of shipping additional stuff that doesn't come from upstream.
Normally we don't patch features and this patch is so easy that it's placed better in the wiki in an additional "Colors" section.
We have one of the best Wikis about Linux in the world. So we should use it. :)

Loading...