delorie.com/archives/browse.cgi | search |
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 |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Sven_K=F6hler?= <skoehler AT upb DOT de> |
Subject: | Re: "which" command does not expand "~" in path |
Date: | Sat, 25 Sep 2004 20:32:31 +0200 |
Lines: | 19 |
Message-ID: | <cj4diq$1du$1@sea.gmane.org> |
References: | <1094385246 DOT 5803 DOT ezmlm AT cygwin DOT com> <6 DOT 1 DOT 2 DOT 0 DOT 1 DOT 20040926005459 DOT 02810cb0 AT mail DOT ros DOT com DOT au> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | p508a5865.dip.t-dialin.net |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040817 |
In-Reply-To: | <6.1.2.0.1.20040926005459.02810cb0@mail.ros.com.au> |
X-IsSubscribed: | yes |
> Set PATH so it includes user's private bin if it exists > if [ -d ~/bin ] ; then > PATH="~/bin:${PATH}" > fi Hmm, i'm not 100% percent sure, but is this supposed to work in general? I don't think that all programs that use the PATH varible are supposed to interpret ~ correctly. Instead, the shell usually substitutes ~ or ~user. Look at this the output of these commands: echo ~ echo "~" I would suggest to use PATH="$HOME/bin:$PATH" or even PATH="$(echo -n ~)/bin:$PATH" instead of your line. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |