Bram Moolenaar wrote:
Charles Campbell wrote:

Please try the following on a linux system:

   mkdir PROBLEM
   cd PROBLEM
   ln -s file1 file2

Doing ls shows file2 exists (but it points to a non-existing file).

Fire up vim:

   vim -u NONE -N
   :echo string(glob("*"))

shows that glob() returns an empty string, whereas it should show
file2.  "file2" is a symbolic link, which means that its a file that has
contents (which happens to be a path to a non-existing file).
I see the problem.  And when you create the "file2" file it lists both
file1 and file2.

If after the ln -s file1 file2, one then types
  touch file1
  ls
then both file1 and file2 appear. Glob("*") should in that case show file1 and file2. There must be some information gathering that fails on the missing file1 that stops f_glob() from showing file2.

Regards,
Chip Campbell

--
--
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui