From 4b93a90047ef610839ad19612ea4e86295d951ca Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 17 Aug 2012 12:39:57 +0200 Subject: [PATCH] grep.kak: use perl regex syntax and quote parameters --- src/rc/grep.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/grep.kak b/src/rc/grep.kak index 18a8ec64..55f2fca2 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -1,6 +1,6 @@ def -env-params grep %{ echo grep in progress, please wait...; %sh{ output=$(mktemp -t kak-grep.XXXXXXXX) - grep -Hn $kak_param0 $kak_param1 $kak_param2 $kak_param3 $kak_param4 >& ${output} + grep -PHn "$kak_param0" "$kak_param1" "$kak_param2" "$kak_param3" "$kak_param4" >& ${output} echo "echo try %{ db *grep* } catch %{ } edit -scratch *grep*