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


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


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