From 60b632b173e633cc5346f8a5491ef637e1f78166 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 25 Jun 2010 14:05:37 +0000 Subject: tests/build-hook.hook.sh: prefer more portable `...` syntax over $(...) for running sub-shells The /bin/sh interpreter on Solaris doesn't understand $(...) syntax for running sub-shells. Consequently, this test fails on Solaris. To remedy the situation, the script either needs to be run by /bin/bash -- which is non-standard --, or it needs to use the ancient but portable `...` syntax. --- tests/build-hook.hook.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/build-hook.hook.sh') diff --git a/tests/build-hook.hook.sh b/tests/build-hook.hook.sh index 18eba283e11d..83fa3bf78757 100755 --- a/tests/build-hook.hook.sh +++ b/tests/build-hook.hook.sh @@ -6,11 +6,11 @@ drv=$4 echo "HOOK for $drv" >&2 -outPath=$(sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv) +outPath=`sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv` echo "output path is $outPath" >&2 -if $(echo $outPath | grep -q input-1); then +if `echo $outPath | grep -q input-1`; then echo "# accept" >&2 read x echo "got $x" -- cgit 1.4.1