commit 81d70b41a121e9f096fdf06b93859eac8584dabe
Author: Stephan Witt <sw...@lyx.org>
Date:   Thu Sep 14 08:57:52 2017 +0200

    #10762 read complete answer from LyX server and echo it
---
 development/MacOSX/lyxeditor |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor
index 553acb0..aeb6370 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."

Reply via email to