mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
#10762 open lyx pipe only once to read the answer
(cherry picked from commit c7efc9df28
)
This commit is contained in:
parent
4348166d8b
commit
ccf33ccf5f
@ -87,9 +87,9 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
|
|||||||
MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
|
MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
|
||||||
# echo "$MAC_LYXPIPE_CONTENTS"
|
# echo "$MAC_LYXPIPE_CONTENTS"
|
||||||
echo "$MAC_LYXPIPE_CONTENTS" > "${LYXPIPE}".in || { echo "Cannot write to lyxpipe." ; exit 2 ; }
|
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
|
echo LyX said: $line
|
||||||
done || { echo "Cannot read from lyxpipe." ; exit 2 ; }
|
done < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; }
|
||||||
else
|
else
|
||||||
echo "Our best guess sets lyxpipe as ${LYXPIPE}"
|
echo "Our best guess sets lyxpipe as ${LYXPIPE}"
|
||||||
echo "But the lyxpipe could not be found."
|
echo "But the lyxpipe could not be found."
|
||||||
|
Loading…
Reference in New Issue
Block a user