ncurses wasn't installed -> no tput/clear/reset commands

John Summerfield debian at herakles.homelinux.org
Fri Oct 31 02:16:47 UTC 2008


Chuck Anderson wrote:
> Apparently nothing in the default install set requires ncurses, so 
> that leaves the system missing the commands "tput", "clear" and 
> "reset", the first of which at least is used by the default login 
> scripts:
> 
> #grep -r tput /etc/profile*
> /etc/profile.d/colorls.csh:  if ( "`tput colors`" == "256" ) then
> /etc/profile.d/colorls.sh:      [ "x`tput colors 2>/dev/null`" = 
> "x256" ] && \
> 
> I get an error when I open a new shell with tcsh:
> 
> tput: Command not found.
> 
> I guess the provider of /etc/profile.d/colorls.* (coreutils) should 
> Requires: ncurses?  Or should this be put into comps?
> 
> "clear" and "reset" are such a basic commands I'd expect them to 
> always be there.  My .logout has had "clear" in it for more than 10 
> years...
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=469277
> 

bash should require it, the file below is part of the bash package.

11:13 [summer at numbat ~]$ rpm -qf /etc/skel/.bash_logout
bash-3.1-16.1
11:16 [summer at numbat ~]$

Possibly, mingetty too, it clears the screen.

-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)




More information about the fedora-test-list mailing list