Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-Id: <6.1.2.0.1.20040929100541.02841230@mail.ros.com.au>
X-Sender: errol@mail.ros.com.au (Unverified)
Date: Wed, 29 Sep 2004 10:08:17 +1000
To: cygwin@cygwin.com
From: Errol Smith <errol@ros.com.au>
Subject: Re: "which" command does not expand "~" in path (base-files update needed)
In-Reply-To: <20040928153144.GM26145@trixie.casa.cgf.cx>
References: <6.1.2.0.1.20040929010527.027f4eb0@mail.ros.com.au> <20040928153144.GM26145@trixie.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-IsSubscribed: yes

At 01:31 AM 29/09/2004, Christopher Faylor wrote:
> > # Set MANPATH so it includes users' private man if it exists
> > # if [ -d ~/man ]; then
> >-#   MANPATH="~/man:${MANPATH}"
> >+#   MANPATH="${HOME}/man:${MANPATH}"
> > # fi
> >
> > # Set INFOPATH so it includes users' private info if it exists
> > # if [ -d ~/info ]; then
> >-#   INFOPATH="~/info:${INFOPATH}"
> >+#   INFOPATH="${HOME}/info:${INFOPATH}"
> > # fi
>
>I don't know if man or info deal properly with ~ but neither of the
>above should cause a problem for which.

  I realise they don't affect "which", but I was assuming they might affect 
man and/or info. See Igors message 
(http://www.cygwin.com/ml/cygwin/2004-09/msg01565.html) which seems to 
confirm my suspicions. Also, it was simply for consistency (no point doing 
an assignment one way on one line & another way on another without a good 
reason).

E
   


--
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/

