Re: [pcre-dev] [Bug 1070] New: No file globbing under Win32 …

Kezdőlap
Üzenet törlése
Szerző: Philip Hazel
Dátum:  
Címzett: 1070
CC: pcre-dev
Tárgy: Re: [pcre-dev] [Bug 1070] New: No file globbing under Win32 OS
On Tue, 18 Jan 2011, Bucky Kid wrote:

> This is globbing problem of pcregrep occuring on Win32 builds:
>
> pcregrep "teststring" *.txt
>
> generates this error message
>
> pcregrep: Failed to open *.txt: Invalid argument
>
> version independent, tested with same command line on mingw32 build and file
> globbing is working


There is no globbing within pcregrep. In Unix/Linux systems it relies on
the shell to do that job. In other words, if the above command is run
under (e.g.) the bash shell, what the program sees is a list of file
names. It does not see "*.txt". The message you quote above shows that
whatever shell you were using has just passed "*.txt" to pcregrep.

I am not a Windows user, so I have no idea about any kind of globbing
under Windows. Anybody else on this list care to answer?

Philip

--
Philip Hazel