From owner-freebsd-questions@freebsd.org Mon Feb 22 10:10:44 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 1CFE8AAF3CE for ; Mon, 22 Feb 2016 10:10:44 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD6A61DD9 for ; Mon, 22 Feb 2016 10:10:43 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x233.google.com with SMTP id g62so164233702wme.1 for ; Mon, 22 Feb 2016 02:10:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:reply-to; bh=gF85Dpbe/JgpQfY3+97LdnWKDfDBFfcWZARsLxpZNMk=; b=dd2CfPghHOiuVl+xiJgqWPuju5e6fAH2t+OHIbhLBq0XiTiu+QKrtJdstyRtffGTC3 1PcG7LFw/OdJFLx7E8jDok8g9WvVA2T2QRk+Xjij8ti7EMWF+aNxWIcvzNPvgDR4NQ45 IZ4qVoqRjbU2rINA0RNV4RJqfXYhDpaRizN9Ez5TNalYRfuVqGUU1YwlHx+b6OFau900 LJYfMnARDiGM72ap8ovlDqyCLul7EOT2W8rX9oFk7BmqVOe7H4QEG58I/ySc9705BbTy YNtYZH1IxTKBnAKp6V/Rq4MqMG/J7//JNNNviEF6rXxZkV1xdWbedCshsd3jmjjV2Zlb xKCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=gF85Dpbe/JgpQfY3+97LdnWKDfDBFfcWZARsLxpZNMk=; b=f7MAKPJB5TACq5GlcXfc/v8tNDZJi6wpfOH1a6cVEaM2Q+Vck99fT7uGlvFY4YRJmx 9LMTvZFQEqfh6ta39WpuOwp1O6693qmDmPhW9fL31gqKOvlLvkClhCswfwu+rTTUveIm Iwl0ZPySFju4z9lydPzR8gBBnKdFibxoLdVA/ezCpLrr6B/8Lq5tdtWuTo8KMoY2Oh3J R+cmgjlyx5iOpwmlKDgQG20GPZAGyZxjeVFnJ7rqSjBr74tWvM3Am4/aUyj1OgIYtwhX m3T1B/FZL5qgAMuVD5/HV1j/5j8bjL20rkQeDm1j1of8IkXwK/isqygOci9XDHWuu6cZ gWFA== X-Gm-Message-State: AG10YOQ7IL03OF/YTqtYbiQtXXzSScQqsBXV7VH0X2+YRj8yEwnKLLAUwBG/vJE/5wj7h4zy X-Received: by 10.194.47.133 with SMTP id d5mr28921660wjn.87.1456135841918; Mon, 22 Feb 2016 02:10:41 -0800 (PST) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id t205sm20385573wmt.23.2016.02.22.02.10.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Feb 2016 02:10:41 -0800 (PST) Date: Mon, 22 Feb 2016 02:10:41 -0800 (PST) X-Google-Original-Date: Mon, 22 Feb 2016 10:10:40 GMT Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id u1MAAela088588 for ; Mon, 22 Feb 2016 10:10:40 GMT (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id u1MAAe7J088587 for freebsd-questions@freebsd.org; Mon, 22 Feb 2016 10:10:40 GMT (envelope-from mexas) From: Anton Shterenlikht Message-Id: <201602221010.u1MAAe7J088587@mech-as222.men.bris.ac.uk> To: freebsd-questions@freebsd.org Subject: tcsh - SHELL: Undefined variable. Reply-To: mexas@bris.ac.uk 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:10:44 -0000 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 :/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