grep,make: tweak mktemp call to work on OSX

This commit is contained in:
Maxime Coste 2012-10-02 10:37:08 +02:00
parent 081f579ba1
commit 84acf2594a
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
def -shell-params -file-completion \ def -shell-params -file-completion \
grep %{ echo grep in progress, please wait...; %sh{ 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} mkfifo ${output}
( grep -PHn "$@" >& ${output} ) >& /dev/null < /dev/null & ( grep -PHn "$@" >& ${output} ) >& /dev/null < /dev/null &
echo "echo echo "echo

View File

@ -1,5 +1,5 @@
def -shell-params make %{ echo make in progress, please wait...; %sh{ 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} mkfifo ${output}
( make $@ >& ${output} ) >& /dev/null < /dev/null & ( make $@ >& ${output} ) >& /dev/null < /dev/null &
echo "echo echo "echo