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: File not found with scp


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/


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