The following command works as expected within vim:
:args `find . -type f`
as well as this one (with wildcard):
:args `find . -name \*.inc`
However when I run the following:
:args `find . -type f -not -path "*/\.*"`
I've the error:
E79: Cannot expand wildcards
"`find . -type f -not -path" [New File]
It works from the command line as expected:
$ find . -type f -not -path "*/\.*"
Basically the extra -not -path "*/\.*"
means to ignore all the hidden files starting with dot, such as git repository files.
What I'm doing wrong? Do some characters needs to be escaped (which one)?
find
returning error code let vim raise the E79 message. This is not the same thing ashelp E79
described. For instance,:args `false`
also gets an E79, and it has nothing to do with expanding wildcard.