mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user