delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/01/01:16:37

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
Message-ID: <41355B27.6010301@x-ray.at>
Date: Wed, 01 Sep 2004 07:16:23 +0200
From: Reini Urban <rurban AT x-ray DOT 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 AT cygwin DOT com
Subject: Re: Python os.path.join inconsistency?
References: <Pine DOT SOL DOT 4 DOT 31 DOT 0408301317480 DOT 11638-100000 AT dandenong DOT cs DOT umass DOT edu> <413384A1 DOT 7080509 AT alltel DOT net> <20040830195455 DOT GC15021 AT trixie DOT casa DOT cgf DOT cx> <4133873F DOT 8090606 AT alltel DOT net>
In-Reply-To: <4133873F.8090606@alltel.net>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019