summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-07-19 10:17:39 +0200
committerJim Meyering <jim@meyering.net>2007-07-19 10:17:39 +0200
commit1f2c2d70538f6cdff2ac1bfeb20191b9bf82b5f8 (patch)
treed67a5b26f7ecd66508fe31773ef74fe9675ccdb5
parent7465b002f9c8850a279568f832ff238ad5ba1476 (diff)
downloadcoreutils-1f2c2d70538f6cdff2ac1bfeb20191b9bf82b5f8.tar.xz
Fix a portability bug in the new ls-color test.
* tests/ls/stat-free-symlinks: Don't rely on the ability of a built-in printf to interpolate '\e'. Use '\033' instead.
-rw-r--r--ChangeLog6
-rwxr-xr-xtests/ls/stat-free-symlinks6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e4bc423c..d6e2e05ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-19 Jim Meyering <jim@meyering.net>
+
+ Fix a portability bug in the new ls-color test.
+ * tests/ls/stat-free-symlinks: Don't rely on the ability of
+ a built-in printf to interpolate '\e'. Use '\033' instead.
+
2007-07-18 Jim Meyering <jim@meyering.net>
"cp -i --update older newer" no longer prompts; same for mv
diff --git a/tests/ls/stat-free-symlinks b/tests/ls/stat-free-symlinks
index 78d91c90b..260eb6cf5 100755
--- a/tests/ls/stat-free-symlinks
+++ b/tests/ls/stat-free-symlinks
@@ -61,9 +61,9 @@ test -s err && fail=1
# Check that output is colorized, as requested, too.
{
- printf '\e[0m\e[01;35mlink-to-x\e[0m@\n'
- printf '\e[01;32mx\e[0m*\n'
- printf '\e[m'
+ printf '\033[0m\033[01;35mlink-to-x\033[0m@\n'
+ printf '\033[01;32mx\033[0m*\n'
+ printf '\033[m'
} > exp || fail=1
cmp out exp || fail=1