#10762 avoid back ticks for sub-shell execution where possible

This commit is contained in:
Stephan Witt 2017-09-14 08:50:42 +02:00
parent 7ff051f9e7
commit bec5b579b0

View File

@ -55,7 +55,7 @@ do
# See if it contains a \\serverpipe entry
# Whether it does or not, break out of the loop because we've
# found the preferences file.
LYXPIPE=`parse_serverpipe "${PREFERENCES}"`
LYXPIPE=$(parse_serverpipe "${PREFERENCES}")
if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
break
fi
@ -77,11 +77,11 @@ test -z "${LYXPIPE}" && {
# lyxrc.dist exists
# See if it contains a \\serverpipe entry
LYXPIPE=`parse_serverpipe "${LYXRC_DIST}"`
LYXPIPE=$(parse_serverpipe "${LYXRC_DIST}")
}
if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
file=`echo "$1" | sed 's|^/private||'`
file=$(echo "$1" | sed 's|^/private||')
MAC_LYXPIPE_CONTENTS="LYXCMD:macdvix:server-goto-file-row:$file $2"
# echo "$MAC_LYXPIPE_CONTENTS"