From d0944ee2e8705734c47371f3ec881ce9dae83411 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 29 Sep 2013 13:31:32 -0400 Subject: Solaris /bin/sh can't handle multiple options ("-e -c"). --- tests/scripts/targets/ONESHELL | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/scripts/targets') diff --git a/tests/scripts/targets/ONESHELL b/tests/scripts/targets/ONESHELL index 0660e92..87713da 100644 --- a/tests/scripts/targets/ONESHELL +++ b/tests/scripts/targets/ONESHELL @@ -4,6 +4,10 @@ $description = "Test the behaviour of the .ONESHELL target."; $details = ""; +# Some shells (*shakes fist at Solaris*) cannot handle multiple flags in +# separate arguments. +my $t = `/bin/sh -e -c true 2>/dev/null`; +my $multi_ok = $? == 0; # Simple @@ -19,7 +23,8 @@ all: # Simple but use multi-word SHELLFLAGS -run_make_test(q! +if ($multi_ok) { + run_make_test(q! .ONESHELL: .SHELLFLAGS = -e -c all: @@ -29,6 +34,7 @@ all: '', 'a=$$ [ 0"$a" -eq "$$" ] || echo fail '); +} # Again, but this time with inner prefix chars -- cgit v1.2.3