commit ccf33ccf5f697c80beb0939892348e354a0896b2
Author: Stephan Witt <[email protected]>
Date:   Fri Sep 15 08:16:50 2017 +0200

    #10762 open lyx pipe only once to read the answer
    
    (cherry picked from commit c7efc9df28b86cd93dbe56ba0c645a4b381baf9f)
---
 development/MacOSX/lyxeditor |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor
index 476ffc0..7431b3b 100755
--- a/development/MacOSX/lyxeditor
+++ b/development/MacOSX/lyxeditor
@@ -87,9 +87,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 ; }
-       while read line < "${LYXPIPE}".out ; do
+       while read line ; do
                echo LyX said: $line
-       done || { echo "Cannot read from lyxpipe." ; exit 2 ; }
+       done < "${LYXPIPE}".out || { 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