diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-11-14 00:07:14 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-11-14 00:07:14 +0000 |
| commit | 323997041d23358f58793edfaf4db92c1b95e950 (patch) | |
| tree | 0d02766ff009eff18f7f52371428fa8ec1aac9f1 /src | |
| parent | 6adf6f3e2972afb77447f054bcd3b5a851039e8d (diff) | |
Do not use eval for grepcmd, as it will evaluate \ escapes as well
Diffstat (limited to 'src')
| -rw-r--r-- | src/rc/grep.kak | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/grep.kak b/src/rc/grep.kak index 9e969304..b98708b0 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -6,9 +6,9 @@ def -shell-params -file-completion \ output=$(mktemp -d -t kak-grep.XXXXXXXX)/fifo mkfifo ${output} if (( $# > 0 )); then - ( eval ${kak_opt_grepcmd} "$@" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null & + ( ${kak_opt_grepcmd} "$@" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null & else - ( eval ${kak_opt_grepcmd} "${kak_selection}" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null & + ( ${kak_opt_grepcmd} "${kak_selection}" | tr -d '\r' >& ${output} ) >& /dev/null < /dev/null & fi [[ -n "$kak_opt_toolsclient" ]] && echo "eval -client '$kak_opt_toolsclient' %{" |
