From owner-freebsd-questions@FreeBSD.ORG Thu Jan 25 21:30:57 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 53F9916A400 for ; Thu, 25 Jan 2007 21:30:57 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.freebsd.org (Postfix) with ESMTP id 3488313C44C for ; Thu, 25 Jan 2007 21:30:57 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn07.u.washington.edu (hymn07.u.washington.edu [140.142.8.53]) by mxout1.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0PLUuSw030941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 25 Jan 2007 13:30:56 -0800 Received: from localhost (localhost [127.0.0.1]) by hymn07.u.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0PLUuaY029027 for ; Thu, 25 Jan 2007 13:30:56 -0800 X-Auth-Received: from [192.55.52.4] by hymn07.u.washington.edu via HTTP; Thu, 25 Jan 2007 13:30:56 PST Date: Thu, 25 Jan 2007 13:30:56 -0800 (PST) From: youshi10@u.washington.edu To: freebsd-questions@freebsd.org In-Reply-To: <20070125195049.GA5742@ayn.mi.celestial.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.0.289146, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.25.131932 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __C230066_P5 0, __CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: [OT] Does "~" always point to $HOME? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 21:30:57 -0000 On Thu, 25 Jan 2007, Bill Campbell wrote: > 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 Ok, I'll stick with home then. Thanks! -Garrett