Page MenuHomePhorge

do not use tput if variable TERM is empty
Closed, ResolvedPublic


How this has been spotted:

qvm-run --pass-io anon-whonix update-torbrowser
qvm-run --pass-io anon-whonix "tput cols"

What really happens:

TERM="" tput cols
tput: No value for $TERM and no -T specified



Event Timeline

Related, has it been considered for qvm-run --pass-io to set or not set environment variable TERM? I wonder if the current implementation is correct. @marmarek

qvm-run --pass-io uses simple pipe (not virtual terminal), so it is
expected to not have TERM set.

Patrick changed the task status from Open to Review.Jun 2 2016, 11:59 AM

Done in all involved components.

Patrick claimed this task.