This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to get a script file to use bash and ssh


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]