what is eating dircolors?

Michal Jaegermann michal at harddata.com
Mon Aug 2 16:24:05 UTC 2004


On Sun, Aug 01, 2004 at 06:40:04PM -0400, Deji Akingunola wrote:
>  --- Michal Jaegermann <michal at harddata.com> wrote: 
> > 
> > In general for non-Linux systems I suspect that
> > hardly anything will
> > know what TERM=gnome will happen to be and this will
> > affect many
> > programs. 
> 
> I'm already being affected; I can't login to an IRIX
> system as I'm used to do before from a FC3t1 system.
> It now complain "unknown terminal TERM=gnome", won't
> set my environment variable properly and thus I can do
> anything on it.

Well, you can type 'TERM=xterm' (or equivalent depending
on which shell you happen to be using on IRIX) and this
should make your IRIX much happier.

You can also set 'TERM=xterm' before starting a connection
to IRIX. 'gnome' terminal type is 'xterm' plus some few extras
so you are not loosing that much.

Or, if you are using bash and ssh for that login then you
can drop as - say - /etc/profile.d/ssh.sh, or elsewhere in your
startup files, something of that sort

# executing ssh in a subshell to get environment automatically back

if [ -x "$(type -fp ssh)" ] ; then
    ssh () {
	( [ "$TERM" = gnome ] && TERM=xterm
	$(type -fp ssh) $@ )
    }
fi

and similar for other things where you would need such change.  That
will solve vanishing colours in 'ls' even if you are doing 'ssh
localhost' on FC3t1. :-) The above depends on 'type' from bash-3 and
you would have either "hardwire" a location of ssh or play more
complicated games with earlier bash versions.

For those using csh I will leave to them to hack an equivalent
of such shell function. :-)

Last, but not least, you can modify your TERM globally back to
'xterm', which is trivial, but we are supposed to be testing.

   Michal





More information about the fedora-test-list mailing list