On 2020-06-15, lacygoill wrote:
> Describe the bug
> 
> simplify() does not reduce multiple leading path separators.
> 
> To Reproduce
> 
> Run this shell command:
> 
> vim -Nu NONE -es +"pu=simplify('//tmp')|%p" +'qa!'
> 
> The output is //tmp.
> 
> Expected behavior
> 
> The output is /tmp.
> 
> Environment
> 
>   • Vim version: 8.2 Included patches: 1-981
>   • OS: Ubuntu 16.04.6 LTS
>   • Terminal: XTerm(322)

This is not a bug.  The simplify() function should leave two leading
slashes alone.  The POSIX spec states:

    A pathname that begins with two successive slashes may be
    interpreted in an implementation-defined manner, although more
    than two leading slashes shall be treated as a single slash.

Regards,
Gary

----------
http://pubs.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap04.html#tag_04_11
https://unix.stackexchange.com/questions/12283/unix-difference-between-path-starting-with-and

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20200615165352.GA29345%40phoenix.

Raspunde prin e-mail lui