delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/03/05:55:59

X-Recipient: archive-cygwin AT delorie DOT 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 AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <155330114.20100903135029@mtu-net.ru>
To: Jeremy Bopp <jeremy AT bopp DOT net>, cygwin AT cygwin DOT com
Subject: Re: How to get a script file to use bash and ssh
In-Reply-To: <4C800C26.1090907@bopp.net>
References: <29608117 DOT post AT talk DOT nabble DOT com> <4C7FFCCE DOT 7040207 AT budcat DOT com> <4C800078 DOT 9040101 AT bopp DOT net> <AANLkTiksieKcd5YUNqQoYNoAf2Ydxr+RGd+d5D1q-DST AT mail DOT gmail DOT com> <4C800C26 DOT 1090907 AT bopp DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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
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 AT freemail DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019