RHEL 6 tput command in /etc/profile.d/colorls.csh fails

Solution Verified - Updated -

Issue

  • If the $TERM environment variable is undefined, as in an at job or in a non-interactive tcsh shell, the tput command in the /etc/profile.d/colorls.csh script fails, producing the following message:
tput: No value for $TERM and no -T specified

Environment

  • Red Hat Enterprise Linux (RHEL) 6
    • coreutils-8.4-16

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content