Please test latest snapshot

Yitzchak Scott-Thoennes sthoenna@efn.org
Mon May 16 01:36:00 GMT 2005


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/



More information about the Cygwin mailing list