/grep-windows

Primary LanguageBatchfile

grep-windows

Instructions for building Gnu Grep and pcre2grep as a native windows application

All patches under the same license as sources of Gnu Grep: GPLv3 or later

Author of the patches: Michael M. Builov (mbuilov@yandex.ru)

Known bugs of this build of Gnu grep

  • search in sub-directories is not working (grep -r produces "warning: xxx: recursive directory loop")

Changes since windows build of Gnu grep-3.3

  • fixed support for colorizing output of grep in Windows console (enabled via '--color' option; tip: use "color" command to reset console colors)

Changes since windows build of Gnu grep-3.7

  • now support for Perl regular expressions is statically complied in the grep executable

Pre-built executables:

Instructions how to create build patch

Instructions how to apply build patch to compile grep using native tools only

Prepared build patches

For x64/Windows10/VS22:

For x86/WindowsXP/VS22: