Small bug in init-functions => log_use_fancy_output()
Bug #418461 reported by
Alkis Georgopoulos
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lsb (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In /lib/lb/
if [ -t 1 ] && [ "x$TERM" != "" ] && [ "x$TERM" != "xdumb" ] && [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1 && $TPUT setaf 1 >/dev/null 2>&1; then
has a bug in this check:
[ "x$TERM" != "" ]
That, I guess, was supposed to read
[ "x$TERM" != "x" ]
to check if $TERM is not empty.
Related branches
To post a comment you must log in.
This bug was fixed in the package lsb - 4.0-0ubuntu4
---------------
lsb (4.0-0ubuntu4) karmic; urgency=low
* Merge 3.2-23 from Debian, fixing TERM handling in log_use_ fancy_output architecture rather than installation- architecture (LP: #403316).
(LP: #418461).
* Use dpkg --print-
--print-
lsb (3.2-23) unstable; urgency=low
* Fix tests for $TERM in log_use_ fancy_output( ). (Closes: #537112, #536190) failure} _msg. (Closes: #525684)
* Add libnss3-1d and libqt4-sql-sqlite to lsb-desktop dependencies.
(Closes: #534277, #534452)
* Properly trap open() failures in lsb_release. (Closes: #521462)
* Ignore empty arguments in /etc/lsb-release. (Closes: #485565)
May also fix #514041.
* Better test for existant but unreadable PID file. (Closes: #527890)
* Add some punctuation to log_{warning,
* lsb-core depends on cups-bsd | lpr, since it is more likely that
someone in 2009 will have CUPS installed already than want to use lpr
instead. (Closes: #512098)
-- Colin Watson <email address hidden> Thu, 10 Sep 2009 12:42:03 +0100