X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.0 required=5.0	tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,TW_RW,TW_WX
X-Spam-Check-By: sourceware.org
Date: Fri, 3 Sep 2010 13:50:29 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <155330114.20100903135029@mtu-net.ru>
To: Jeremy Bopp <jeremy@bopp.net>, cygwin@cygwin.com
Subject: Re: How to get a script file to use bash and ssh
In-Reply-To: <4C800C26.1090907@bopp.net>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=Windows-1251
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

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.


--
WBR,
 Andrey Repin (anrdaemon@freemail.ru) 03.09.2010, <13:41>

Sorry for my terrible english...


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

