delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/28/20:25:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <6.1.2.0.1.20040929102021.0284c040@mail.ros.com.au>
X-Sender: errol AT mail DOT ros DOT com DOT au (Unverified)
Date: Wed, 29 Sep 2004 10:25:35 +1000
To: cygwin AT cygwin DOT com
From: Errol Smith <errol AT ros DOT com DOT au>
Subject: Re: "which" command does not expand "~" in path (base-files update needed)
In-Reply-To: <Pine.CYG.4.58.0409281439000.2292@fordpc.vss.fsi.com>
References: <NUTMEGCtgx8VUkRacUt0000013f AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <NUTMEGyMp69YDqSkcJs00000140 AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <20040928194018 DOT GR26145 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT CYG DOT 4 DOT 58 DOT 0409281439000 DOT 2292 AT fordpc DOT vss DOT fsi DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

At 05:43 AM 29/09/2004, Brian Ford wrote:
> > export PATH=~/bin:$PATH
>
>How 'bout using a temp, or just plain $HOME as suggested before?

  Good question, I'd like to know what was wrong with my (first ever 
cygwin) patch! ;-)
Seriously though, is there any advantage to using ~ over $HOME? the bash 
man page states that ~ maps to $HOME anyway:
"If this login name is the null string, the tilde is replaced  with  the 
value  of  the shell parameter HOME.  If HOME is unset, the home directory 
of the user executing the shell 
is  substituted  instead.   Other-wise,  the  tilde-prefix is replaced with 
the home directory associated with the specified login name."

Errol


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019