delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/02/09:13:08

X-Spam-Check-By: sourceware.org
Message-Id: <6.2.3.4.2.20060502150143.054498a0@pop.gmail.com>
X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4
Date: Tue, 02 May 2006 15:12:46 +0200
To: cygwin AT cygwin DOT com
From: Davor Perkovac <davor DOT perkovac AT gmail DOT com>
Subject: Re: rsync quote char in Path bug
In-Reply-To: <44575348.6080508@byu.net>
References: <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20060502133947 DOT 050af5d0 AT pop DOT gmail DOT com> <44575348 DOT 6080508 AT byu DOT net>
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

At 06:40 02.05.2006 -0600, Eric Blake wrote:

>According to Davor Perkovac on 5/2/2006 5:52 AM:
> > Hi.
> >
> > I found out that having quote characters in DOS Path variable around
> > directories which are listed before cygwin/bin path can confuse rsync so
> > that it's unable to find ssh executable.
>
>Try invoking rsync from inside a cygwin shell, such as bash, rather than
>from the Windows command line, to see if that helps.  Also, what does
>
>c:\> bash -c "echo $PATH"

>output, both when the Windows Path had quotes and when it does not?  If
>cygwin is not properly converting the Windows Path into a valid PATH that
>other cygwin programs can understand, that might explain why rxvt is
>unable to find ssh.

Output of
c:\> bash -c "echo $PATH"

Path without quotes:
C:\davor>bash -c "echo $PATH"
/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/usr/bin:/usr/bin:/cygdrive/c/Program 
Files/Executive Software/Diskeeper/:/cygdrive/c/Program 
Files/Microsoft SQL Server/80/Tools/Binn/:/cygdrive/c/Program 
Files/UltraEdit:/cygdrive/c/Program Files/ATI 
Technologies/ATI.ACE/:/cygdrive/c/davor/bin:/cygdrive/c/Program 
Files/SecureCRT 3.0

Path with quotes:
C:\davor>bash -c "echo $PATH"
"C:/WINDOWS/system32":/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/usr/bin:/usr/bin:/cygdrive/c/Program 
Files/Executive Software/Diskeeper/:/cygdrive/c/Program 
Files/Microsoft SQL Server/80/Tools/Binn/:/cygdrive/c/Program 
Files/UltraEdit:/cygdrive/c/Program Files/ATI 
Technologies/ATI.ACE/:/cygdrive/c/davor/bin:/cygdrive/c/Program 
Files/SecureCRT 3.0

...looks like when path is with quotes it is not converted into 
/cygdrive/c/* path.

When Path has quotes, rsync does work when invoked from bash, it only 
fails to work when invoked from command prompt.

Davor. 


--
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