Skip to content

Commit 3d62863

Browse files
authored
[check] Use grep -F instead of fgrep (#6509)
POSIX only defines grep, not fgrep and egrep (the latter two were already marked as LEGACY in SUSv2 in 1997, and are not present in POSIX-2001 or any later POSIX standards). Recent versions of GNU grep warn when fgrep and egrep are used.
1 parent 1c22d62 commit 3d62863

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/check-source.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ grep -n '^[^%]*[^{"]C++[^"}]' $texfiles |
7676
fail 'use \\Cpp{} instead' || failed=1
7777

7878
# Use \caret instead of \^
79-
fgrep -n '\^' $texfiles |
79+
grep -F -n '\^' $texfiles |
8080
fail 'use \\caret instead' || failed=1
8181

8282
# Use \unicode instead of U+nnnn
@@ -137,7 +137,7 @@ done |
137137
fail 'No namespace around class definition' || failed=1
138138

139139
# ref-qualifier on member functions with no space, e.g. "const&"
140-
fgrep -ne ') const&' $texlib |
140+
grep -F -ne ') const&' $texlib |
141141
fail 'no space between cv-qualifier and ref-qualifier' || failed=1
142142

143143
# \begin{example/note} with non-whitespace in front on the same line.

0 commit comments

Comments
 (0)