#10762 read complete answer from LyX server and echo it

(cherry picked from commit 81d70b41a1)
This commit is contained in:
Stephan Witt 2017-09-14 08:57:52 +02:00
parent 4599a1b6f1
commit 9b6cee5af4

View File

@ -86,7 +86,9 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
# echo "$MAC_LYXPIPE_CONTENTS"
echo "$MAC_LYXPIPE_CONTENTS" > "${LYXPIPE}".in || { echo "Cannot write to lyxpipe." ; exit 2 ; }
read < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; }
while read line < "${LYXPIPE}".out ; do
echo LyX said: $line
done || { echo "Cannot read from lyxpipe." ; exit 2 ; }
else
echo "Our best guess sets lyxpipe as ${LYXPIPE}"
echo "But the lyxpipe could not be found."