From 9b6cee5af4ceeecf5ae9e90f0010cfa1afa78e52 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 14 Sep 2017 08:57:52 +0200 Subject: [PATCH] #10762 read complete answer from LyX server and echo it (cherry picked from commit 81d70b41a121e9f096fdf06b93859eac8584dabe) --- development/MacOSX/lyxeditor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor index 553acb0953..aeb6370dfd 100755 --- a/development/MacOSX/lyxeditor +++ b/development/MacOSX/lyxeditor @@ -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." -- 2.39.5