]> git.lyx.org Git - features.git/commitdiff
#10762 read complete answer from LyX server and echo it
authorStephan Witt <switt@lyx.org>
Thu, 14 Sep 2017 06:57:52 +0000 (08:57 +0200)
committerStephan Witt <switt@lyx.org>
Thu, 14 Sep 2017 09:41:52 +0000 (11:41 +0200)
(cherry picked from commit 81d70b41a121e9f096fdf06b93859eac8584dabe)

development/MacOSX/lyxeditor

index 553acb0953fe9f1dcd87b2ea0b10a0eb25520d03..aeb6370dfd7732010b5a73148da2fe9f2f1a1a09 100755 (executable)
@@ -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."