From e19095ef128f53644bc7650094d8924633c79efa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 23 Nov 2016 16:53:31 +0200 Subject: Implement value type propagation on expansion Currently, we only propagate types of sole, unquoted expansions (variable, function call, or eval context), similar to NULL. To untypify the value, simply quote it. --- tests/test/script/builtin/touch.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test/script/builtin') diff --git a/tests/test/script/builtin/touch.test b/tests/test/script/builtin/touch.test index 4d2ff57..ef950ea 100644 --- a/tests/test/script/builtin/touch.test +++ b/tests/test/script/builtin/touch.test @@ -39,7 +39,7 @@ touch '' 2>"touch: invalid path ''" == 1 : : Test touching an existing directory. : -a = [path] $~; +a = $~; a += "a"; mkdir a; touch 2>"touch: '$a' exists and is not a file" a == 1 -- cgit v1.1