delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/25/12:55:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <gqdk1b$4f1$1@ger.gmane.org>
References: <b583b1500903250721u2ed57e21o4f99348b8aa6d852 AT mail DOT gmail DOT com> <b583b1500903250819h102eadb9l162df88f48aabaa2 AT mail DOT gmail DOT com> <gqdk1b$4f1$1 AT ger DOT gmane DOT org>
Date: Wed, 25 Mar 2009 12:55:19 -0500
Message-ID: <b583b1500903251055p4f04b433j94bc5f69e7fb64d4@mail.gmail.com>
Subject: Re: File not found with scp
From: Ryan Stewart <rds6235 AT gmail DOT com>
To: cygwin AT cygwin DOT com
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

On Wed, Mar 25, 2009 at 10:52 AM, Thorsten Kampe <...> wrote:
> * Ryan Stewart (Wed, 25 Mar 2009 10:19:45 -0500)
>> On Wed, Mar 25, 2009 at 9:21 AM, Ryan Stewart <...>
>> wrote:
>> I found the problem. When I use scp--from computer A to computer B
>> only--my home isn't c:\cygwin\home\ryan, but c:\Program
>> File\Git\home\ryan. ???
>
> Why do you think it is?
Sorry, I should have given more detail. When I scp from computer A to
B, the copy succeeds, but it places it in c:\Program
Files\Git\home\ryan.

>> c:\cygwin\home\ryan is my home directory on both computer A and B in
>> normal bash shells and also when I ssh from one to the other. Why is
>> scp behaving differently?
>
> Check /etc/profile for details on how HOME is set...
>
I've seen that explanation. HOME is set to /home/ryan on both boxes,
but this seems to be deeper than just how HOME is set, because a
/home/ryan exists in both c:\Program Files\Git (wrong place) and
c:\cygwin (right place). Why would cygwin put /home in a different
place when I use scp?

To make sure my problem is clear, given computers A and B, both with
cygwin installed in the same place:
from A:
ssh B -> bash shell in c:\cygwin\home\ryan
scp B -> file goes to c:\Program Files\Git\home\ryan

from B:
ssh A -> bash shell in c:\cygwin\home\ryan
scp A -> file goes to c:\cygwin\home\ryan

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

- Raw text -


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