tcsh - SHELL: Undefined variable.

Thomas Dickey dickey at his.com
Mon Feb 22 10:27:14 UTC 2016


On Mon, Feb 22, 2016 at 02:10:41AM -0800, Anton Shterenlikht wrote:
> 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

what version of xterm is this?

	xterm -v

(In making changes for $SHELL, I broke it -- a year or two ago -- fixed since)

> 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
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
Thomas E. Dickey <dickey at invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20160222/2fe9879a/attachment.sig>


More information about the freebsd-questions mailing list