mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
#10762 read complete answer from LyX server and echo it
(cherry picked from commit 81d70b41a1
)
This commit is contained in:
parent
4599a1b6f1
commit
9b6cee5af4
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user