Red Hat Bugzilla – Bug 118258
Colour is not reset on SIG INT
Last modified: 2007-04-18 13:04:16 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6)
Description of problem:
Red Hat has:
$ alias ls
alias ls='ls --color=tty'
When I run ls on a directory containing a large number of files, and
press Ctrl+C, ls exits, but does not reset the colour for the terminal.
For example, if ls is half way through printing a green executable
file, and I kill ls, everything I type afterwards is now in green.
Should ls do this, or is this more of a bash "feature"?
This is an ls bug, yes. There have been some changes upstream which
should fix this, but I doubt they will get into Fedora Core 2 before
release at this point. Deferring until the next round.
I think this is fixed now (5.2.1-31) -- at least, I can't reproduce
it. Please re-open if you still see this problem. Thanks.