]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Don't depend on $(command) working.
authorGuy Harris <[email protected]>
Fri, 27 Sep 2019 06:33:26 +0000 (23:33 -0700)
committerGuy Harris <[email protected]>
Fri, 27 Sep 2019 06:33:26 +0000 (23:33 -0700)
Not all Bourne shells support it.

tests/TESTrun.sh
tests/crypto.sh
tests/smb.sh

index 55db40ec93d93cc90a33f580f7a84e493806c070..5a93b142e4b98a28534b8fd8df85ccf530f0823d 100755 (executable)
@@ -4,16 +4,17 @@ TZ=GMT0; export TZ
 srcdir=${SRCDIR-..}
 
 # make it absolute for later use.
-srcdir=$(cd $srcdir && pwd)
+pwd
+srcdir=`cd $srcdir && pwd`
 
 # this should be run from the compiled build directory,
 # with srcdir= set to wherever the source code is.
 # not from the tests directory.
 echo RUNNING from ${srcdir}
 
-passedfile=$(pwd)/tests/.passed
-failedfile=$(pwd)/tests/.failed
-failureoutput=$(pwd)/tests/failure-outputs.txt
+passedfile=`pwd`/tests/.passed
+failedfile=`pwd`/tests/.failed
+failureoutput=`pwd`/tests/failure-outputs.txt
 mkdir -p tests/NEW
 mkdir -p tests/DIFF
 cat /dev/null > ${failureoutput}
index 08848026c4e32e5637ebf4e3871fe6ef071ebc37..558e660f767c62aa97fd38623b663e429c1eead1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 srcdir=${1-..}
-: echo crypto.sh using ${srcdir} from $(pwd)
+: echo crypto.sh using ${srcdir} from `pwd`
 
 SRCDIR=$srcdir
 export SRCDIR
index afee95c7451004eb9cbbf78ad2819f96787bfd4a..450235420692691217010ed3ebc05696dc1bc9f1 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 srcdir=${1-..}
-: echo smb.sh using ${srcdir} from $(pwd)
+: echo smb.sh using ${srcdir} from `pwd`
 
 testdir=${srcdir}/tests