grep: Add quotes in manpage when using wildcards with --include

Examples uses --include=*.h which doesn't work as intended

Approved by:	kevans
Differential Revision:	https://reviews.freebsd.org/D36883
This commit is contained in:
Daniel Engberg 2022-10-05 19:04:52 +02:00
parent d63104d253
commit 070e8d36d9

View File

@ -515,11 +515,11 @@ Do the search recursively from the
.Pa /usr/src/sys/arm
directory
.Pp
.Dl $ grep -H -R FIXME --include=*.h /usr/src/sys/arm/
.Dl $ grep -H -R FIXME --include="*.h" /usr/src/sys/arm/
.It
Same as above but show only the name of the matching file:
.Pp
.Dl $ grep -l -R FIXME --include=*.h /usr/src/sys/arm/
.Dl $ grep -l -R FIXME --include="*.h" /usr/src/sys/arm/
.It
Show lines containing the text
.Sq foo .