From 024c9d315b348cf530264f02c5d48c7efdf367c1 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 14 Sep 2017 08:50:42 +0200 Subject: [PATCH] #10762 avoid back ticks for sub-shell execution where possible (cherry picked from commit bec5b579b0bcb5212b3f1aafb96ce6e1871bf271) --- development/MacOSX/lyxeditor | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor index b31687d1bf..d08cdd2cf8 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" -- 2.39.5