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
This commit is contained in:
parent
4939741a73
commit
81d70b41a1
@ -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