From 84acf2594a7b4a5053478f1e4e662c9f26e25b90 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 2 Oct 2012 10:37:08 +0200 Subject: [PATCH] grep,make: tweak mktemp call to work on OSX --- src/rc/grep.kak | 2 +- src/rc/make.kak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rc/grep.kak b/src/rc/grep.kak index e5ef5230..be205dfc 100644 --- a/src/rc/grep.kak +++ b/src/rc/grep.kak @@ -1,6 +1,6 @@ def -shell-params -file-completion \ grep %{ echo grep in progress, please wait...; %sh{ - output=$(mktemp -t -d kak-grep.XXXXXXXX)/fifo + output=$(mktemp -d -t kak-grep.XXXXXXXX)/fifo mkfifo ${output} ( grep -PHn "$@" >& ${output} ) >& /dev/null < /dev/null & echo "echo diff --git a/src/rc/make.kak b/src/rc/make.kak index f64cea01..b77d18f8 100644 --- a/src/rc/make.kak +++ b/src/rc/make.kak @@ -1,5 +1,5 @@ def -shell-params make %{ echo make in progress, please wait...; %sh{ - output=$(mktemp -t -d kak-make.XXXXXXXX)/fifo + output=$(mktemp -d -t kak-make.XXXXXXXX)/fifo mkfifo ${output} ( make $@ >& ${output} ) >& /dev/null < /dev/null & echo "echo