From 405c89ba1e33e013f7e582e28f969fc3f39b9b2c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 3 Mar 2012 22:56:20 +0000 Subject: Ensure that .ONESHELL works with .SHELLFLAGS options containing whitespace. See Savannah bug #35397. --- tests/scripts/variables/SHELL | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/scripts/variables') diff --git a/tests/scripts/variables/SHELL b/tests/scripts/variables/SHELL index 4416ce1..3d49349 100644 --- a/tests/scripts/variables/SHELL +++ b/tests/scripts/variables/SHELL @@ -64,6 +64,14 @@ my $script = 'true; true'; my $flags = '-xc'; my $out = `/bin/sh $flags '$script' 2>&1`; +run_make_test(qq! +.SHELLFLAGS = $flags +all: ; \@$script +!, + '', $out); + +# Do it again but add spaces to SHELLFLAGS +$flags = '-x -c'; run_make_test(qq! .SHELLFLAGS = $flags all: ; \@$script -- cgit v1.2.3