]> git.lyx.org Git - features.git/commitdiff
#10762 open lyx pipe only once to read the answer
authorStephan Witt <switt@lyx.org>
Fri, 15 Sep 2017 06:16:50 +0000 (08:16 +0200)
committerStephan Witt <switt@lyx.org>
Fri, 15 Sep 2017 06:17:41 +0000 (08:17 +0200)
(cherry picked from commit c7efc9df28b86cd93dbe56ba0c645a4b381baf9f)

development/MacOSX/lyxeditor

index 476ffc07555963aed4976e41bb45a5f80cf26b46..7431b3b99165ee529b34e609b74f56d7f4b1d661 100755 (executable)
@@ -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."