X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0	tests=AWL,BAYES_00,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
Message-ID: <4C810A71.6060101@bopp.net>
Date: Fri, 03 Sep 2010 09:47:13 -0500
From: Jeremy Bopp <jeremy@bopp.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: How to get a script file to use bash and ssh
References: <29608117.post@talk.nabble.com> <4C7FFCCE.7040207@budcat.com> <4C800078.9040101@bopp.net> <AANLkTiksieKcd5YUNqQoYNoAf2Ydxr+RGd+d5D1q-DST@mail.gmail.com> <4C800C26.1090907@bopp.net> <155330114.20100903135029@mtu-net.ru>
In-Reply-To: <155330114.20100903135029@mtu-net.ru>
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Note-from-DJ: This may be spam

On 9/3/2010 4:50 AM, Andrey Repin wrote:
> Greetings, Jeremy Bopp!
> 
>> Assuming, of course, that the necessary entry in /etc/passwd is set
>> correctly.
> 
> Even if not.
> Or not set.
> 
> $ grep $USER /etc/passwd
> [...]:/cygdrive/c/home/Daemon:/bin/bash
> 
> $ ls -l /cygdrive/c/home/Daemon
> ls: cannot access /cygdrive/c/home/Daemon: No such file or directory
> 
> $ set | grep HOME
> HOME=/c/home/Daemon
> HOMEDRIVE=C:
> HOMEPATH=/home/Daemon
> 
> $ ls -l $HOME
> total 8015
> drwxr-xr-x 1 Daemon Отсутствует       0 2010-08-29 19:21 Application Data
> ...
> 
>> The OP sounds pretty green and may have a different idea of
>> his home directory's location than Cygwin deduces, so a little extra
>> hand holding may be in order. :-)
> 
> May be... but it seems, that cygwin deduction is pretty accurate.

After looking at it in more detail, I agree that you're most likely
correct.  Since the OP isn't asking more questions about this, I guess
things are working for him in any case.

-Jeremy

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

