[vim/vim] "all links" argument to glob() not working on Windows (Issue #14933)

4 views
Skip to first unread message

Timothy Madden

unread,
Jun 6, 2024, 6:40:45 PM (12 days ago) Jun 6
to vim/vim, Subscribed

Steps to reproduce

Create a bad symbolic link (with missing target) using MkLink command (needs Administrator access, or needs the Local Policy to be set accordingly).

Use glob() with alllinks argument set to true, to list the new link

:!If Not Exist BadLink (MkLink BadLink NoSuchFileOrDirectory)
:echo 'BadLink'->glob(v:false, v:true, v:true)

If I use readdir() on the directory containing the symlink, then I can list the bad link.

Expected behaviour

glob() should return bad symlinks if alllinks argument is v:true

Version of Vim

9.1 (patches 1-445)

Environment

Windows GUI (gvim.exe)

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14933@github.com>

Christian Brabandt

unread,
2:47 PM (7 hours ago) 2:47 PM
to vim/vim, Subscribed

Closed #14933 as completed via 23c5ebe.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/14933/issue_event/13205192989@github.com>

Reply all
Reply to author
Forward
0 new messages