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
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Sven_K=F6hler?= <skoehler@upb.de>
Subject: Re: "which" command does not expand "~" in path
Date: Sun, 26 Sep 2004 19:58:26 +0200
Lines: 14
Message-ID: <cj6vur$cqc$1@sea.gmane.org>
References: <1094385246.5803.ezmlm@cygwin.com> <6.1.2.0.1.20040926005459.02810cb0@mail.ros.com.au> <cj4diq$1du$1@sea.gmane.org> <cj4np8$b17$1@sea.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
X-Gmane-NNTP-Posting-Host: pd953c3b7.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: <cj4np8$b17$1@sea.gmane.org>
X-IsSubscribed: yes

>> Instead, the shell usually substitutes ~ or ~user.
>> Look at this the output of these commands:
>>     echo ~
>>     echo "~"
> 
> This is probably common knowledge, but I learned last night that sh 
> never expands ~.  Under sh, the two lines above yield the same output, 
> simply ~.

I can confirm that for cygwin.
The "common knowledge" may be, because the most Linux-systems have sh 
linked to bash. Cygwin seems to have a separate "sh" installed.

But is there any command that give's me the home for a given username?


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

