From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 06:51:30 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 BA6A116A401 for ; Fri, 26 Jan 2007 06:51:30 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id 6B12213C489 for ; Fri, 26 Jan 2007 06:51:30 +0000 (UTC) (envelope-from dghatikachalam@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so702854wxc for ; Thu, 25 Jan 2007 22:51:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=I+3XbNWYpHY8lA7K92l/AA/wTO6wJjdkKJl03d58iyTsMOX/S0q2iotuATyg2fWpxDbFZYJ2zQ3RG4r/acBlKb1aM8lUwr6pRJQ+pvyjOlYISQyx+5TZIBWjX9hYttMjX76umRu1OFMHOQtx5MhOv5YOFJe8mO1bwi8yeEpmHeo= Received: by 10.70.35.1 with SMTP id i1mr5423153wxi.1169794289801; Thu, 25 Jan 2007 22:51:29 -0800 (PST) Received: by 10.70.52.12 with HTTP; Thu, 25 Jan 2007 22:51:29 -0800 (PST) Message-ID: Date: Fri, 26 Jan 2007 01:51:29 -0500 From: "Dak Ghatikachalam" To: "youshi10@u.washington.edu" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org 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: Fri, 26 Jan 2007 06:51:30 -0000 I write shells script extensively , I have noticed ~ -> gets a subsitution for $HOME ~userid - >gets you the $HOME for that user meaning if you have have logged in as root and if you want to run some script on oracle home even though you logged in as root you can simplly ~oracle/runme.sh -- > will run the runme.sh in Oracle home directory Regards Dak On 1/25/07, 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. > TIA, > -Garrett > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >