interfacing.asciidoc: Fix some errors in the interactive sample

Fixes #1891
This commit is contained in:
Maxime Coste 2018-03-01 00:10:03 +11:00
parent 2193947b71
commit e39e91049c

View File

@ -62,8 +62,8 @@ The common pattern to do that is to use a fifo buffer:
# run command detached from the shell
( run command here > ${output} ) > /dev/null 2>&1 < /dev/null &
# Open the file in Kakoune and add a hook to remove the fifo
echo "edit! -fifo %{output} *buffer-name*
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output}} }"
echo "edit! -fifo ${output} *buffer-name*
hook buffer BufClose .* %{ nop %sh{ rm -r $(dirname ${output})} }"
}
-----