commit 024c9d315b348cf530264f02c5d48c7efdf367c1
Author: Stephan Witt <sw...@lyx.org>
Date:   Thu Sep 14 08:50:42 2017 +0200

    #10762 avoid back ticks for sub-shell execution where possible
    
    (cherry picked from commit bec5b579b0bcb5212b3f1aafb96ce6e1871bf271)
---
 development/MacOSX/lyxeditor |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor
index b31687d..d08cdd2 100755
--- a/development/MacOSX/lyxeditor
+++ b/development/MacOSX/lyxeditor
@@ -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"

Reply via email to