grep,make: tweak mktemp call to work on OSX
This commit is contained in:
parent
081f579ba1
commit
84acf2594a
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user