delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/30/14:55:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050430144713.089d60f8@pop.prospeed.net>
Date: Sat, 30 Apr 2005 14:53:47 -0400
To: cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: SSH Path Bug
In-Reply-To: <4272E677.CB0D7E3A@dessent.net>
References: <AAE27702C6ACD84FA3BB03D6C04C2B67B5F6 AT swebtec-exchang DOT Swebtec DOT com> <4272E677 DOT CB0D7E3A AT dessent DOT net>
Mime-Version: 1.0

At 09:59 PM 4/29/2005, you wrote:
>Dominic Chambers wrote:
>
>> Running commands via SSH causes windows executables to be given path priority, so that they run ahead of identically named UNIX executables. I found this while trying to use the find command as part of an SSH call. For example, assuming you have an SSH server set up:
>
>I would think this has more to do with how you set your path than
>anything else.  What is $PATH in the case when it finds the windows
>command, and what is $PATH when it finds the Cygwin command?  Cygwin
>doesn't have any such notion of "path priority", it just searches the
>path in order, so if it's finding the windows directory ahead of
>/usr/bin you need to figure out how your path is being set and correct
>it.


No, it's not that.  I was able to reproduce the described behavior even 
when my system path has Cygwin's bin path before Windows.  Running 'sshd'
in debug mode showed the imported path that was not an exact match to any
path I'd set anywhere.  So far, I haven't been able to get far enough 
that I know why this happens.  But I can say that it happens for me
and on more than 1 system and O/S.

--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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