tcsh - SHELL: Undefined variable.
Anton Shterenlikht
mexas at bris.ac.uk
Mon Feb 22 10:10:44 UTC 2016
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
More information about the freebsd-questions
mailing list