From owner-freebsd-questions@freebsd.org Thu Jun 9 03:03:35 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 B84D6B6F26B for ; Thu, 9 Jun 2016 03:03:35 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9D7CF1FA5 for ; Thu, 9 Jun 2016 03:03:35 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=crN5p0bgzqhtne8xJnKdxuxLFmwvl4BnstUaFLl6g88=; b=gYNuvGAZiQCquRNEIovu6Thakt nn3BLRJvdhgBOKSn3DaQNkB24uNXnQR+GGEe+OKCKZuiC2zY27xuhiDBd5g+20iD/NJ2mhr+dBi4A WHT3/WfguvMxaLQOV9T21ttiOFiv/6tvOaE1L5TAp2KlA/a+OTDDOOFN/FD32GwacBTs=; Received: from [114.121.234.111] (port=11432 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bAqFq-003dr8-F9; Wed, 08 Jun 2016 21:03:35 -0600 Date: Thu, 9 Jun 2016 11:03:30 +0800 From: Erich Dollansky To: Polytropon Cc: freebsd-questions@freebsd.org Subject: Re: HOME, Home and home in tcsh Message-ID: <20160609110330.540d0ad5@X220.alogt.com> In-Reply-To: <20160609045645.f98518c7.freebsd@edvax.de> References: <20160609102944.39f0e4c2@X220.alogt.com> <20160609045645.f98518c7.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Authenticated-Sender: sl-508-2.slc.westdc.net: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2016 03:03:35 -0000 Hi, On Thu, 9 Jun 2016 04:56:45 +0200 Polytropon wrote: > On Thu, 9 Jun 2016 10:29:44 +0800, Erich Dollansky wrote: > > the answer to my question might be so obvious, but I do not know it. > > > > I use this to set the home for the current project I am working on > > and then use cd $Home to return to the project's home directory: > > > > setenv home "`pwd`/" > > setenv Home "`pwd`/" > > > > 'home' contains always my real home directory. 'Home' contains the > > project's home directory as expected. > > > > Does anybody know why it is like this? > > The variable $home is set by the C shell automatically, similarly > as it does "set path = (... list of path elements ...)"; $home is > set like $HOME by the shell itself and should not be altered by > the user (without purpose). :-) > > From "man csh": > > The character `~' at the beginning of a filename refers to > home direc- tories. Standing alone, i.e., `~', it expands to the > invoker's home directory as reflected in the value of the home shell > variable. > > [...] > > Special shell variables I obviously missed it here. > HOME Equivalent to the home shell variable. > Now I know that it does fall down from the blue sky. Thanks! Erich