From 88126626897a2c9928053179d83d96b7125765a0 Mon Sep 17 00:00:00 2001 From: Christine Caulfield Date: Fri, 18 Mar 2022 10:10:47 +0000 Subject: [PATCH] use $() rather than `` --- tests/ipc_sock.test | 8 ++++---- tests/start.test | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ipc_sock.test b/tests/ipc_sock.test index ac6d69be..c7bad7f0 100755 --- a/tests/ipc_sock.test +++ b/tests/ipc_sock.test @@ -5,13 +5,13 @@ # so we can test both options without breaking other things # that might be running on this system # -if [ "`uname -s`" = "Linux" ] +if [ "$(uname -s)" = "Linux" ] then - if [ -f `pwd`/.libs/libstat_wrapper.so ] + if [ -f $(pwd)/.libs/libstat_wrapper.so ] then - export LD_PRELOAD=`pwd`/.libs/libstat_wrapper.so + export LD_PRELOAD=$(pwd)/.libs/libstat_wrapper.so else - export LD_PRELOAD=`pwd`/libstat_wrapper.so + export LD_PRELOAD=$(pwd)/libstat_wrapper.so fi ./ipc.test else diff --git a/tests/start.test b/tests/start.test index 91d1734f..7f635403 100755 --- a/tests/start.test +++ b/tests/start.test @@ -7,7 +7,7 @@ # The test programs all add "qb-test--" to the front of this. # -NAME="$$-`date +%s`" +NAME="$$-$(date +%s)" printf "$NAME" > ipc-test-name mkdir -p $SOCKETDIR