su on 10.2: TERM: Undefined variable

Erich Dollansky erichsfreebsdlist at alogt.com
Mon Nov 23 00:40:37 UTC 2015


Hi,

On Sun, 22 Nov 2015 14:04:25 +0100
Miroslav Lachman <000.fbsd at quip.cz> wrote:

> >
> > Miroslav Lachman  
> 
> The only workaround I found is adding
> export TERM=""
> at the top of the script.
> 
this is a bit strange. TERM should be always define to tell the
applications the capabilities of your terminal. When X is running, it
is normally set to xterm, if nothing is available - or you do not know
what is available - set it to vt100.

Of course, the best would be to find out why it is not set on your
machine.

Erich


More information about the freebsd-stable mailing list