Package: lsb-base
Version: 3.1-24
Severity: normal

At one point in line 257 of /lib/lsb/init-functions:

251-    if log_use_fancy_output; then
252-        RED=`$TPUT setaf 1`
253-        NORMAL=`$TPUT op`
254-        if [ $1 -eq 0 ]; then
255-            echo "."
256-        else
257-            /bin/echo -e " ${RED}failed!${NORMAL}"
258-        fi
259-    else

/bin/echo is used with option `-e' to output "fancy_output". I presume
that the builtin echo is avoided to remain compatible with both dash &
bash. At another point (line 157) the builtin echo is used for another
fancy output:

153-log_failure_msg () {
154:    if log_use_fancy_output; then
155-        RED=`$TPUT setaf 1`
156-        NORMAL=`$TPUT op`
157-        echo "$RED*$NORMAL $@"
158-    else
159-        echo "$@"
160-    fi
161-}

Either `/bin/echo -e' should be used in the second case to make sure
that special escaped chars will be interpreted in case bash is used, or
the use of `/bin/echo -e' in the first case is useless.

PS. There are other places where `/bin/echo -e' is not used for
"fancy_output".



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to