file=`echo "$1" | sed 's|^/private||'`
-echo "LYXCMD:macdvix:server-goto-file-row:"$file" $2"
-echo LYXCMD:macdvix:server-goto-file-row:"$file" $2 > "${LYXPIPE}".in || exit
+MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
+echo "$MAC_LYXPIPE_CONTENTS"
+echo "$MAC_LYXPIPE_CONTENTS" > "${LYXPIPE}".in || exit
read < "${LYXPIPE}".out || exit