]> git.lyx.org Git - features.git/commitdiff
#10762 avoid back ticks for sub-shell execution where possible
authorStephan Witt <switt@lyx.org>
Thu, 14 Sep 2017 06:50:42 +0000 (08:50 +0200)
committerStephan Witt <switt@lyx.org>
Thu, 14 Sep 2017 09:41:22 +0000 (11:41 +0200)
(cherry picked from commit bec5b579b0bcb5212b3f1aafb96ce6e1871bf271)

development/MacOSX/lyxeditor

index b31687d1bf6685ab159a711570377d7d1d60c49c..d08cdd2cf8c9883932b210aa60385830af33c805 100755 (executable)
@@ -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"