Public bug reported:
Binary package hint: module-assistant
This is module-assistant 0.10.11ubuntu1 in hardy.
module-assistant, in --text-mode, typically uses terminal escape
sequences to highlight certain lines in its output (e.g. the "dpkg -Ei
..." invocation). However, it does two things incorrectly:
1. It uses these escape sequences even if the output is being redirected
to a file. That is, it is not checking that the output is actually going
to a tty. Compare that to the behavior of, say, "ls --color=auto".
2. If it is invoked from (for example) a cron job, where the TERM
variable is unset, you see this in the output:
--------
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
................................................................................
.....Getting source for kernel version: 2.6.24-21-generic
Kernel headers available in /usr/src/linux-headers-2.6.24-21-generic
Creating symlink...
apt-get install build-essential
--------
So module-assistant is being rather careless about how it uses tput(1)
and terminal escape sequences. In both of the above cases, it ought to
know better than to blindly assume it is connected to a tty.
As a workaround, setting TERM=dumb will get rid of both the escape
sequences, and the tput(1) errors, making the output clean and suitable
for a log file.
** Affects: module-assistant (Ubuntu)
Importance: Undecided
Status: New
--
"m-a -t" uses tput(1) and terminal escape sequences incorrectly
https://bugs.launchpad.net/bugs/284181
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs