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 \
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user