Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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/