]> git.ipfire.org Git - thirdparty/coreutils.git/commit
ls --color: don't emit a final no-op escape sequence
authorJim Meyering <meyering@redhat.com>
Sat, 30 Jan 2010 22:52:46 +0000 (16:52 -0600)
committerJim Meyering <meyering@redhat.com>
Mon, 1 Feb 2010 07:26:12 +0000 (08:26 +0100)
commit5d43617e8ad863ed041309edefd018fdcaa87038
tree97b006c897443e5ff9dd599f95ae3d603c2fd342
parent5d4952059fa0d68cfc09ca5f72e6b0124633c79b
ls --color: don't emit a final no-op escape sequence

* src/ls.c (main): With --color, avoid emitting the final color-
resetting escape sequence when it would be a no-op.
* tests/ls/color-clear-to-eol: Adjust expected output accordingly.
* tests/ls/color-dtype-dir: Likewise.
* tests/ls/multihardlink: Likewise.
* tests/ls/stat-free-symlinks: Likewise.
* tests/misc/ls-misc: Likewise.
* NEWS (Changes in behavior): Mention it.
C de-Avillez rebased and adapted four of the new sl-dangle*
tests in tests/misc/ls-misc.
Reported by Jim Avera in
http://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/494663
NEWS
src/ls.c
tests/ls/color-clear-to-eol
tests/ls/color-dtype-dir
tests/ls/multihardlink
tests/ls/stat-free-symlinks
tests/misc/ls-misc