From: Stephan Witt Date: Thu, 14 Sep 2017 06:57:52 +0000 (+0200) Subject: #10762 read complete answer from LyX server and echo it X-Git-Tag: 2.3.0rc1~102 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9b6cee5af4ceeecf5ae9e90f0010cfa1afa78e52;p=features.git #10762 read complete answer from LyX server and echo it (cherry picked from commit 81d70b41a121e9f096fdf06b93859eac8584dabe) --- 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."