Re: configure on FreeBSD reports "grep: The -P option is not supported"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/19/22 09:15, Rebecca Cran wrote:
On 9/19/22 07:12, Vincent Fu wrote:
On 9/18/22 23:33, Rebecca Cran wrote:
It looks like commit 7ff204c83595cd7d6b7b6a813d9fda97afd25198 introduced an error on some systems such as FreeBSD, whose grep doesn't support -P.

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

./configure now reports:

grep: The -P option is not supported
seed_buckets                  4

Is -P required?


Hello Bex,

Does it work for you to replace -P with -E?

Alternatively, what if we replaced grep with

test "$1" -eq "$1" 2>/dev/null


Replacing it with -E works.


Bex, change committed here:

https://github.com/axboe/fio/commit/d14687025c0c61d047e4252036d1b024d62cb0a6

Thanks.

Vincent



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux