From owner-freebsd-questions@FreeBSD.ORG Thu Jan 25 19:46:54 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC0B216A404 for ; Thu, 25 Jan 2007 19:46:54 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id 9DBBC13C441 for ; Thu, 25 Jan 2007 19:46:54 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id EF82C6860B908; Thu, 25 Jan 2007 11:50:49 -0800 (PST) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TLhsBGN6DnZc; Thu, 25 Jan 2007 11:50:49 -0800 (PST) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id D80406800A4F4; Thu, 25 Jan 2007 11:50:49 -0800 (PST) Date: Thu, 25 Jan 2007 11:50:49 -0800 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20070125195049.GA5742@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 OpenPKG/2.5 Subject: Re: [OT] Does "~" always point to $HOME? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 19:46:54 -0000 On Thu, Jan 25, 2007, youshi10@u.washington.edu wrote: >Hello again, > I'm revising some documentation that has examples of running Unix > commands and I want to make sure that my steps are correct, such that I > can substitute the tilde character ('~') for $HOME. The only issue I > can see with this is an improper configuration with sudo (ran into some > problems with $HOME in the past using sudo on Gentoo), but I'm pretty > sure that sudo's setup on the machine cluster properly. That's true on most relatively modern shells, but not on pure Bourne Shell, /bin/sh. As for ``sudo'', ``sudo -'' invokes the login environment while a plain ``sudo'' doesn't. Bill -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``If we got one-tenth of what was promised to us in these acceptance speeches there wouldn't be any inducement to go to heaven.'' Will Rogers