From 7070441feb3ab54d27b251b00c44f628a10ce09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Cie=C5=9Blak?= Date: Tue, 29 Oct 2019 02:57:06 +0100 Subject: [PATCH] Recognize receive|recv output for -u detection zfs help output on FreeBSD 11.2-STABLE: receive|recv [-vnsFu] receive|recv [-vnsFu] [-o origin=] [-d | -e] receive|recv -A we should detect -u in the same way we try it for -x --- zrep_vars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zrep_vars b/zrep_vars index 052d8eb..1741a46 100644 --- a/zrep_vars +++ b/zrep_vars @@ -264,7 +264,7 @@ else if grep 'receive[ |].*-[a-zA-Z]*x' $zrep_checkfile >/dev/null ;then Z_HAS_X=1 # can use recv -x fi - if grep 'receive .*-[a-zA-Z]*u' $zrep_checkfile >/dev/null ;then + if grep 'receive[ |].*-[a-zA-Z]*u' $zrep_checkfile >/dev/null ;then Z_HAS_REC_U=1 # can use recv -u fi # This bit is unfortunately ugly. Two problems: