diff options
author | Jim Meyering <meyering@redhat.com> | 2010-01-30 16:52:46 -0600 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-02-01 08:26:12 +0100 |
commit | 5d43617e8ad863ed041309edefd018fdcaa87038 (patch) | |
tree | 97b006c897443e5ff9dd599f95ae3d603c2fd342 /tests/ls/stat-free-symlinks | |
parent | 5d4952059fa0d68cfc09ca5f72e6b0124633c79b (diff) | |
download | coreutils-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-x | tests/ls/stat-free-symlinks | 1 |
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 |