On 03/12/08 20:08, Charles Campbell wrote:
> Hello!
>
> :echo expand("**/somefile")
>
> yields a list of "somefile"s that are contained in the current directory
> and below -- except for those directories beginning with a ".". This
> observation is for linux, Centos 5.2, but I expect it applies elsewhere,
> too.
>
> Is this a bug? I didn't see anything in :help starstar, except for "In
> a search pattern this would be ".*". Note that the "." is not used for
> file searching. ", and I'm not sure if it applies.
>
> Regards,
> Chip Campbell
The usual Unix convention is that directories and files whose names
begin with a dot are "hidden". Normally you don't see them unless you
explicitly specify that you want to see them, either with the -a
command-line switch of the ls command, by giving a filename with an
explicit initial dot (and optional wildcards if the command in question
accepts more than one filename), etc.
So I believe that "it's not a bug, it's a feature", but I don't know how
to work around it in the particular case of the ** wildcard.
IIUC, on Dos/Windows FAT filesystems the equivalent property is the H
file-attribute (or rather, the "or" result of the H "hidden" and S
"system" attributes).
Best regards,
Tony.
--
Blore's Razor:
Given a choice between two theories, take the one which is
funnier.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---