On 27 Jul 2023, at 03:28, Sajjad Ali <a.sajjad...@outlook.com> wrote: > > successfully build grep for windows on MSYS2. no errors. > > but it shows nothing for "grep.exe -h", "grep --version" or any other > supplied argument.
Can you run grep.exe in the Visual Studio debugger? Then you should be able to see what is happening more clearly. For example, does it go into main()?, does it parse command line arguments?, etc. Another obvious thing to check first is whether a simple "hello world" program shows any output. If that is not working, there is something wrong with your MSYS development environment. -Dimitry
signature.asc
Description: Message signed with OpenPGP