summaryrefslogtreecommitdiff
path: root/tests/ls/stat-free-symlinks
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-30 16:52:46 -0600
committerJim Meyering <meyering@redhat.com>2010-02-01 08:26:12 +0100
commit5d43617e8ad863ed041309edefd018fdcaa87038 (patch)
tree97b006c897443e5ff9dd599f95ae3d603c2fd342 /tests/ls/stat-free-symlinks
parent5d4952059fa0d68cfc09ca5f72e6b0124633c79b (diff)
downloadcoreutils-5d43617e8ad863ed041309edefd018fdcaa87038.tar.xz
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
Diffstat (limited to 'tests/ls/stat-free-symlinks')
-rwxr-xr-xtests/ls/stat-free-symlinks1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/ls/stat-free-symlinks b/tests/ls/stat-free-symlinks
index f6cdb9131..6843b97fd 100755
--- a/tests/ls/stat-free-symlinks
+++ b/tests/ls/stat-free-symlinks
@@ -46,7 +46,6 @@ grep '^stat("x"' err && fail=1
{
printf '\033[0m\033[01;35mlink-to-x\033[0m@\n'
printf '\033[01;32mx\033[0m*\n'
- printf '\033[m'
} > exp || fail=1
compare out exp || fail=1