delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/03/12:23:25

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
References: <46127E23 DOT 8030007 AT mff DOT cuni DOT cz>
Subject: RE: bash improperly sets PATH containing period
Date: Tue, 3 Apr 2007 17:22:41 +0100
Message-ID: <017d01c7760c$4d7a1500$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <46127E23.8030007@mff.cuni.cz>
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 03 April 2007 17:18, Pavel Kudrna wrote:

> (Such dos path containing period is legal and is used in Novell Client
> as search drives.)

  However it is impossible to reproduce precisely in cygwin, as there is no
concept of a current directory per-drive, only one for the entire system.

> Pavel Kudrna
> 
> C:\temp> path c:\temp;c:.;s:\public
> 
> C:\temp> path
> PATH=c:\temp;c:.;s:\public
> 
> C:\temp> "C:\Program Files\cygwin\bin\bash.exe" --login -i
> 
> kudrna AT k15 ~
> $ echo $PATH
>
/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/temp:c:.:/cygdrive/s/p
ublic:/usr/local/cint

  But I agree this is wrong, the path-conversion code should either just use a
plain '.' as a path component or discard the entire item altogether, it
certainly shouldn't end up treating 'c' as one path component and '.' as a
separate one.



    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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