[pcre-dev] [Bug 1070] No file globbing under Win32 OS

Góra strony
Delete this message
Autor: Philip Hazel
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1070] No file globbing under Win32 OS
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1070




--- Comment #1 from Philip Hazel <ph10@???> 2011-01-18 14:26:51 ---
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


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email