Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <41355B27.6010301@x-ray.at>
Date: Wed, 01 Sep 2004 07:16:23 +0200
From: Reini Urban <rurban@x-ray.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a2) Gecko/20040714
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Python os.path.join inconsistency?
References: <Pine.SOL.4.31.0408301317480.11638-100000@dandenong.cs.umass.edu> <413384A1.7080509@alltel.net> <20040830195455.GC15021@trixie.casa.cgf.cx> <4133873F.8090606@alltel.net>
In-Reply-To: <4133873F.8090606@alltel.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Ken Dibble schrieb:
> I guess my limited experience (including not being a windows programmer)
> colored my perception.
> 
> I had never been able to get any Windows variant I was exposed to,
> to accept a forward slash.  So much for my recall device of
> Unix Forward, Windows Backward.

Win95 derivates accept only backward, WinNT since always forward slashes 
also.
All the WinAPI functions and all winnt commands.
cmd.exe knows about it, command.com not, most older shells try to take 
the first "/" as argument delimiter. (stupid command.com habits)

   [n:\]bin/ls
   4DOS/NT: Unknown command "BIN"

   [n:\]ls /bin/ls
   /bin/ls

Some homegrown scripts or python or perl or php libs probably not.
Who knows on which they decide to split their args and paths.
If they just pass the paths verbatim to the underlying API, it should 
work okay.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/

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

