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/targets/ONESHELL | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/scripts/targets') diff --git a/tests/scripts/targets/ONESHELL b/tests/scripts/targets/ONESHELL index 997423f..0660e92 100644 --- a/tests/scripts/targets/ONESHELL +++ b/tests/scripts/targets/ONESHELL @@ -17,6 +17,19 @@ all: [ 0"$a" -eq "$$" ] || echo fail '); +# Simple but use multi-word SHELLFLAGS + +run_make_test(q! +.ONESHELL: +.SHELLFLAGS = -e -c +all: + a=$$$$ + [ 0"$$a" -eq "$$$$" ] || echo fail +!, + '', 'a=$$ +[ 0"$a" -eq "$$" ] || echo fail +'); + # Again, but this time with inner prefix chars run_make_test(q! -- cgit v1.2.3