From owner-freebsd-questions@freebsd.org Mon Feb 22 10:27:14 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71A49AAFDC9 for ; Mon, 22 Feb 2016 10:27:14 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from smtp-1.his.com (smtp-1.his.com [216.194.195.13]) by mx1.freebsd.org (Postfix) with ESMTP id 2064E1B8B for ; Mon, 22 Feb 2016 10:27:13 +0000 (UTC) (envelope-from tom@invisible-island.net) Received: from localhost (localhost [127.0.0.1]) by smtp-1.his.com (Postfix) with ESMTP id 942866075A for ; Mon, 22 Feb 2016 05:19:43 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at smtp-1.his.com X-Spam-Flag: NO X-Spam-Score: -2.6 X-Spam-Level: X-Spam-Status: No, score=-2.6 tagged_above=-99 required=4 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham Received: from smtp-1.his.com ([127.0.0.1]) by localhost (smtp-1.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id enwTPjgwsJFL for ; Mon, 22 Feb 2016 05:19:38 -0500 (EST) Received: from smtp-nf-201.his.com (smtp-nf-201.his.com [216.194.196.24]) by smtp-1.his.com (Postfix) with ESMTP id 920676043A for ; Mon, 22 Feb 2016 05:19:38 -0500 (EST) Received: from cuda201.his.com (cuda201.his.com [216.194.196.22]) by smtp-nf-201.his.com (Postfix) with ESMTPS id 5D272605E6 for ; Mon, 22 Feb 2016 05:19:31 -0500 (EST) X-ASG-Debug-ID: 1456136370-061c414f76163140001-jLrpzn Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.196.20]) by cuda201.his.com with ESMTP id lDbMAA7VYjJnB37R; Mon, 22 Feb 2016 05:19:30 -0500 (EST) X-Barracuda-Envelope-From: tom@invisible-island.net X-Barracuda-RBL-Trusted-Forwarder: 216.194.196.20 Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by smtp-nf-202.his.com (Postfix) with ESMTP id 7C5856009F; Mon, 22 Feb 2016 05:19:30 -0500 (EST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail-sterling.his.com (Postfix) with ESMTP id A82303F80004; Mon, 22 Feb 2016 05:19:30 -0500 (EST) X-Barracuda-RBL-Trusted-Forwarder: 216.194.248.141 X-Virus-Scanned: amavisd-new at mail-sterling.his.com Received: from mail-sterling.his.com ([127.0.0.1]) by localhost (mail-sterling.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cyxsgflUVGSh; Mon, 22 Feb 2016 05:19:30 -0500 (EST) Received: from vmw-debian7-64.jexium-island.net (static-71-246-219-82.washdc.fios.verizon.net [71.246.219.82]) by mail-sterling.his.com (Postfix) with ESMTPSA id 3255D3F80003; Mon, 22 Feb 2016 05:19:30 -0500 (EST) Received: from tom by vmw-debian7-64.jexium-island.net with local (Exim 4.80) (envelope-from ) id 1aXnaT-0001iI-Ll; Mon, 22 Feb 2016 05:19:29 -0500 X-Barracuda-Effective-Source-IP: static-71-246-219-82.washdc.fios.verizon.net[71.246.219.82] X-Barracuda-Apparent-Source-IP: 71.246.219.82 X-Barracuda-RBL-IP: 71.246.219.82 Date: Mon, 22 Feb 2016 05:19:29 -0500 From: Thomas Dickey To: Anton Shterenlikht Cc: freebsd-questions@freebsd.org Subject: Re: tcsh - SHELL: Undefined variable. Message-ID: <20160222101929.GA6558@vmw-debian7-64.jexium-island.net> X-ASG-Orig-Subj: Re: tcsh - SHELL: Undefined variable. Reply-To: dickey@his.com References: <201602221010.u1MAAe7J088587@mech-as222.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vtzGhvizbBRQ85DL" Content-Disposition: inline In-Reply-To: <201602221010.u1MAAe7J088587@mech-as222.men.bris.ac.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Barracuda-Connect: smtp-nf-202.his.com[216.194.196.20] X-Barracuda-Start-Time: 1456136370 X-Barracuda-URL: https://spam.his.com:443/cgi-mod/mark.cgi X-Barracuda-Scan-Msg-Size: 1575 X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=7.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.27234 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 10:27:14 -0000 --vtzGhvizbBRQ85DL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 22, 2016 at 02:10:41AM -0800, Anton Shterenlikht wrote: > I noticed recently that my tcsh does not > define SHELL anymore: >=20 > > echo $SHELL > SHELL: Undefined variable. >=20 > There is XTERM_SHELL: >=20 > > setenv|grep SHELL > XTERM_SHELL=3D/bin/tcsh what version of xterm is this? xterm -v (In making changes for $SHELL, I broke it -- a year or two ago -- fixed sin= ce) > but that's it. >=20 > When I launch xterm from an existing shell, > it opens with /bin/sh and returns nothing at all for $SHELL: >=20 > $ echo $SHELL >=20 > $ >=20 > 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: >=20 > > grep `whoami` /etc/passwd > :/bin/tcsh >=20 > My .tcshrc: >=20 > set path=3D(/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=20 > setenv NNTPSERVER nntp.aioe.org=20 > alias su /usr/bin/su - >=20 > Please help >=20 > Anton >=20 >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --vtzGhvizbBRQ85DL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlbK4LEACgkQcCNT4Pfkjts39QCfRxpeUuNsk1IyaWRXdWk8vN5a xywAoLuuDKcGMzOOORoNM9CQYNpggC11 =eFZT -----END PGP SIGNATURE----- --vtzGhvizbBRQ85DL--