X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_13,J_CHICKENPOX_33,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49CBB102.80801@gmail.com> Date: Thu, 26 Mar 2009 16:44:50 +0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: File not found with scp References: <49CA78C9 DOT 8020205 AT cygwin DOT com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Ryan Stewart wrote: > "which scp" on both machines points to /usr/bin/scp. A full hd search > for scp.* on both machines reveals that there are two of them: > c:\cygwin\bin\scp.exe and c:\Program Files\Git\bin\scp.exe. However: > 1) Git's scp.exe isn't on the path, > 2) Removing git's scp.exe doesn't make a difference, and > 3) Completely uninstalling git from computer A doesn't make a > difference, either: scp from A to B still puts /home in c:\Program > Files\Git. > > However (again), if I uninstall git from computer B, then scp from A > to B works fine. I've verified this multiple times. With git (which is > actually msysgit) installed on computer B, scp puts files in the Git > directory. When I uninstall git, scp immediately puts files in the > right place. Install git again, and the location switches back. Exactly what is this version of git and where did it come from? Is it conceivable that it's someone trying to *not* be a 3PP by integrating with the existing Cygwin installation, and for some misguided reason it modifies your sshd config? Looking at the cygcheck diffs suggests two things: --- cygcheck cmptr B.out 2009-03-26 16:41:59.000000000 +0000 +++ cygcheck cmptr B no git.out 2009-03-26 16:41:56.312500000 +0000 @@ -19,7 +19,6 @@ Path: C:\WINDOWS\system32 c:\cygwin\bin C:\Program Files\TextPad 5 C:\Program Files\Windows Imaging\ - C:\Program Files\Git\cmd 1. Perhaps a full list of all the files in Git\cmd might be instructive. -Path = 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\dev\tools\ant-1.7.0\bin;C:\Documents and Settings\ryan.stewart\quick links;C:\Program Files\YourKit Java Profiler 7.5.11\bin\win32;C:\dev\tools\maven-2.0.9\bin;C:\dev\jdks\jdk1.6.0_11\bin;c:\dev\tools\mysql-5.0.51b-win32 \bin;"C:\Program Files\Graphviz2.16\Bin";C:\dev\tools\groovy-1.5.6\bin;c:\cygwin \bin;C:\Program Files\TextPad 5;C:\Program Files\Windows Imaging\;C:\Program Files\Git\cmd' +Path = 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Subversion\bin;C:\dev\tools\ant-1.7.0\bin;C:\Documents and Settings\ryan.stewart\quick links;C:\Program Files\YourKit Java Profiler 7.5.11\bin\win32;C:\dev\tools\maven-2.0.9\bin;C:\dev\jdks\jdk1.6.0_11\bin;c:\dev\tools\mysql-5.0.51b-win32 \bin;"C:\Program Files\Graphviz2.16\Bin";C:\dev\tools\groovy-1.5.6\bin;c:\cygwin \bin;C:\Program Files\TextPad 5;C:\Program Files\Windows Imaging\' 2. What happens if Git is installed, but not in the PATH? cheers, DaveK -- 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/