From 086656241c3ccca377474bfea1cb269ac9a67d60 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 23 Mar 2017 09:35:20 +0000 Subject: 22601: Fix for parameter substitution pattern matches. It was not possible to math against a zero-length string in some cases. --- Test/D04parameter.ztst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Test') diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst index cb9d50dc8..99f7dd91a 100644 --- a/Test/D04parameter.ztst +++ b/Test/D04parameter.ztst @@ -2148,3 +2148,13 @@ F:behavior, see http://austingroupbugs.net/view.php?id=888 [[ ${-} = [[:alnum:]]## ]] || print Failed 2 } 0:$- expansion correctly handles Dash token + + a=(1 "" 3) + print -rl -- "${(@)a//*/x}" + a="" + print -rl -- "${(@)a//*/y}" +0:Zero-length string match in parameter substitution +>x +>x +>x +>y -- cgit 1.4.1