delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/15/21:08:11

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
Date: Sun, 15 May 2005 18:07:51 -0700
From: Yitzchak Scott-Thoennes <sthoenna AT efn DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Please test latest snapshot
Message-ID: <20050516010751.GB3060@efn.org>
References: <55E0A3E94323974F83CFC5AAB96F68B8014191C8 AT snnexc03 DOT in DOT ce DOT com DOT au>
Mime-Version: 1.0
In-Reply-To: <55E0A3E94323974F83CFC5AAB96F68B8014191C8@snnexc03.in.ce.com.au>
User-Agent: Mutt/1.4.1i
X-IsSubscribed: yes

On Mon, May 16, 2005 at 11:03:32AM +1000, Sonam Chauhan wrote:
> Corinna Vinschen said:
> > You can now list servers in the machine's domain/workgroup with
> > 
> >  $ ls //
> 
> Since some (most?) Unix shells have a "convenience feature" to reinterpret
> multiple forward slashes as a single slash, could this behavior break
> existing scripts or makefiles?
> 
> Also, there is a strange discrepancy in how the current (non-snapshot)
> version of Cygwin 1.5.16-1 handles multiple forward slashes. I compared it's
> handling of some 'ls' commands to that of bash on Linux RHAS 2.1.
> 
> When listing '/', all the following commands work the same on both systems: 
> 1. 	ls /
> 2. 	ls //
> 3. 	ls ///
> 4. 	ls ////
> 
> However, when listing a directory under '/', command #2 behaves differently
> in Cygwin:
> 1. 	ls /etc
> 2. 	ls //etc (* - fails only on Cygwin, see below)
> 3. 	ls ///etc
> 4. 	ls ////etc

This is per the Single Unix Specification; three or more slashes are
required to be equivalent to one slash, while two slashes are
explicitly reserved for operating system dependent behaviour (in
cygwin's case, //server).

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