Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Feb 2016 02:10:41 -0800 (PST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        freebsd-questions@freebsd.org
Subject:   tcsh - SHELL: Undefined variable.
Message-ID:  <201602221010.u1MAAe7J088587@mech-as222.men.bris.ac.uk>

next in thread | raw e-mail | index | archive | help
I noticed recently that my tcsh does not
define SHELL anymore:

> echo $SHELL
SHELL: Undefined variable.

There is XTERM_SHELL:

> setenv|grep SHELL
XTERM_SHELL=/bin/tcsh

but that's it.

When I launch xterm from an existing shell,
it opens with /bin/sh and returns nothing at all for $SHELL:

$ echo $SHELL

$

This is weird because xterm manual says if shell
name is not given on the command line, it tries
to get it from /etc/passwd. My entry has /bin/tcsh:

> grep `whoami` /etc/passwd
<username, uid, gid, comment, home dir>:/bin/tcsh

My .tcshrc:

set path=(/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin \
 /usr/X11R6/bin /home/mexas/bin /usr/local/kde4/bin/)
setenv EDITOR vi
setenv PAGER more
setenv LSCOLORS "ExFxCxDxBxegedabagacad"
setenv LYNX_CFG ~/.lynx.cfg
setenv LC_CTYPE en_US.UTF-8 
setenv NNTPSERVER nntp.aioe.org 
alias su /usr/bin/su -

Please help

Anton





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602221010.u1MAAe7J088587>