From 7c8595c5eeb16dd0964f33c54d639a46d9f04401 Mon Sep 17 00:00:00 2001 From: Sidharth Kshatriya Date: Tue, 14 Dec 2021 15:19:31 +0530 Subject: [PATCH] Use `grep -E` as OpenBSD grep does not like `|` in regexp otherwise --- test/normal/keep-cmd-reg/rc | 2 +- test/normal/keep-cmd/cmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/normal/keep-cmd-reg/rc b/test/normal/keep-cmd-reg/rc index bb917bfe..662d68f6 100644 --- a/test/normal/keep-cmd-reg/rc +++ b/test/normal/keep-cmd-reg/rc @@ -1 +1 @@ -set-register a %{grep 'foo\|bar'} +set-register a %{grep -E 'foo|bar'} diff --git a/test/normal/keep-cmd/cmd b/test/normal/keep-cmd/cmd index 3cf3f3f4..d77a437e 100644 --- a/test/normal/keep-cmd/cmd +++ b/test/normal/keep-cmd/cmd @@ -1 +1 @@ -%H$grep 'foo\|bar' +%H$grep -E 'foo|bar'