Skip to content

Commit

Permalink
configure: change grep -P to grep -E
Browse files Browse the repository at this point in the history
grep -P is not supported on FreeBSD. So use grep -E when we check
whether the value provided for --seed-buckets is a number or not.

Reported-by: Rebecca Cran <rebecca@bsdio.com>
Link: https://lore.kernel.org/fio/26076f36-54d5-ca6e-0b96-a7371b1c5e49@bsdio.com/T/#t
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
  • Loading branch information
vincentkfu committed Sep 19, 2022
1 parent 9e0ad34 commit d146870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Expand Up @@ -117,7 +117,7 @@ has() {
}

num() {
echo "$1" | grep -P -q "^[0-9]+$"
echo "$1" | grep -E -q "^[0-9]+$"
}

check_define() {
Expand Down

0 comments on commit d146870

Please sign in to comment.