Description of problem: "crontab -l" is showing colors in my terminal (looks like comments). I do not want colors and there isn't anyway to disable it that I can find. It's also buggy... it permanently changed terminal color to all blue. Version-Release number of selected component (if applicable): cronie-1.5.5-2.fc32.x86_64 Steps to Reproduce: 1. "crontab -l" with a comment Actual results: blue color Expected results: no colorization. Additional info: there should be at least some way to disable all colorization for the tool itself. at a system level, redhat has "COLOR none" in /etc/DIR_COLORS for ls which stops "--color=auto" alias from activating. there is also a no-color initiative at https://no-color.org/
If the last line of the crontab is a comment, it seems to mess up the terminal's color scheme permanently leaving it dark blue (in my case on a black background). Uggh!
same problem still present in Fedora 33: cronie-1.5.5-4.fc33.x86_64 see also bug #1895896
*** Bug 1895896 has been marked as a duplicate of this bug. ***
(In reply to Zing from comment #0) > Description of problem: > "crontab -l" is showing colors in my terminal (looks like comments). I do > not want colors and there isn't anyway to disable it that I can find. Colours are only enabled if output is to a terminal, so as a workaround you can do: crontab -l | cat > It's also buggy... it permanently changed terminal color to all blue. Yes, I reported that as bug 1895896 with the following content (including a link to the upstream fix): Description of problem: 'crontab -l' changes terminal colour for comment lines, but doesn't reset it. Version-Release number of selected component (if applicable): cronie-1.5.5-2.fc32.x86_64 How reproducible: Always Steps to Reproduce: 1. crontab -l > /tmp/crontab 2. echo '# this is a comment' >> /tmp/crontab 3. crontab /tmp/crontab 4. crontab -l Actual results: The terminal colour is changed. Expected results: My usual terminal colours are used. Additional info: This was fixed upstream but there hasn't been a new release yet: https://github.com/cronie-crond/cronie/issues/45
It is also still present in cronie-1.5.5-5.fc34.x86_64 from rawhide/FC34. The good news is that I can confirm that the one-line fix upstream, that Jonathan refers to, really works. So perhaps this can be applied before FC34 is released.
FEDORA-2021-93a62df830 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-93a62df830
FEDORA-2021-b55af90afe has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b55af90afe
FEDORA-2021-b55af90afe has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-b55af90afe` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-b55af90afe See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
This fixes the bug of not restoring colors at the end, which is all I care about. However, I note that the original point raised by Zing was that there's no way to turn off the colors the way you can with other programs that colorize.
FEDORA-2021-93a62df830 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-93a62df830` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-93a62df830 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
(In reply to nvwarr from comment #10) > This fixes the bug of not restoring colors at the end, which is all I care > about. However, I note that the original point raised by Zing was that > there's no way to turn off the colors the way you can with other programs > that colorize. I reported that upstream https://github.com/cronie-crond/cronie/issues/81
(In reply to Jonathan Wakely from comment #12) > I reported that upstream https://github.com/cronie-crond/cronie/issues/81 And it's now implemented upstream! https://github.com/cronie-crond/cronie/commit/765a745c6497f8cde51c39db7b1bb88686b90a9c
FEDORA-2021-b55af90afe has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-93a62df830 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.