From owner-freebsd-current Mon Oct 26 12:31:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA19479 for freebsd-current-outgoing; Mon, 26 Oct 1998 12:31:25 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA19474 for ; Mon, 26 Oct 1998 12:31:23 -0800 (PST) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id MAA02622 for current@freebsd.org; Mon, 26 Oct 1998 12:29:46 -0800 (PST) (envelope-from dhw) Date: Mon, 26 Oct 1998 12:29:46 -0800 (PST) From: David Wolfskill Message-Id: <199810262029.MAA02622@pau-amma.whistle.com> To: current@FreeBSD.ORG Subject: Re: sh and ~ expansion In-Reply-To: <7577.909365359@brown.pfcs.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Sun, 25 Oct 1998 20:29:19 -0500 >From: Harlan Stenn >I still want to see csh replaced with tcsh. Though it's not relevant to the original thread, the following excerpt from my ~/.cshrc may be of interest to those with the above perception: set tcsh = `which tcsh` if ( $?HOSTTYPE && ${?tcsh} && "${tcsh}" == "$SHELL" ) then else if ( $?prompt && { test -x ${tcsh} } ) then setenv SHELL "$tcsh" exec tcsh endif endif Naturally, this is done after the $path is set. And /bin/csh is my defined "login shell" -- but given what I do for a living, sometimes the machine in question can't get to /usr/local/bin (which is made visible via NFS & amd). Need to be a little careful, since the "`which tcsh`" invokes csh all over again.... :-} david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message