diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ls/color-clear-to-eol | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ls/color-clear-to-eol b/tests/ls/color-clear-to-eol index ff9530d72..92cf8a8ca 100755 --- a/tests/ls/color-clear-to-eol +++ b/tests/ls/color-clear-to-eol @@ -26,9 +26,10 @@ fi long_name=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.foo touch $long_name || framework_failure +e='\33' color_code='0;31;42' -c_pre='\e[0m\e['"${color_code}m" -c_post='\e[0m\e[K\n\e[m' +c_pre="$e[0m$e[${color_code}m" +c_post="$e[0m$e[K\n$e[m" printf "$c_pre$long_name$c_post" > exp || framework_failure fail=0 |