mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
#10762 avoid back ticks for sub-shell execution where possible
This commit is contained in:
parent
7ff051f9e7
commit
bec5b579b0
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user