[bug] coreutils: potentially dangerous: $(realpath //) != /

Thomas Wolff towo@towo.net
Thu Mar 15 14:34:00 GMT 2018


Am 14.03.2018 um 11:58 schrieb Mikhail Usenko via cygwin:
> On Mon, 12 Mar 2018 20:43:13 -0500
> Eric Blake <...> wrote:
>
> ...
>> Just because Linux has taken the stance that their documented definition
>> of // is "synonym for /" does NOT mean that ALL POSIX systems have taken
>> the same approach; Cygwin has taken the approach that "// is documented
>> to be the root of network access points, distinct from /".
>>
>> POSIX allows leeway between implementations; this is one of those
>> documented places where they differ, yet are still both POSIX compliant
>> with their different choices.  If your script is not robust to what
>> POSIX has already warned you about, fix your script.
>>
>>> ...
> If you really claims that Cygwin may and should be different and distinct from all other
> existing POSIX systems (the more so that it is allowed by POSIX),
which is not the case. There are other systems where // is the network root.
> then it would probably be more obvious and clear to say this at the very begining, e.g.
> "Get that Linux feeling (with all those differents and distinctions) - on Windows"
Considering that due to the limitations of being embedded in Windows, 
Cygwin cannot always perfectly mimic either Linux or POSIX systems, I 
personally prefer the more generic approach to define POSIX as its model.
------
Thomas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list