From 2acbae3badc5c9afe40e2a393472d2d303c60ae6 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 1 Dec 2019 03:59:39 +0000 Subject: unposted: zstyle: Add a unit test and some comments. --- Test/V05styles.ztst | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Test') diff --git a/Test/V05styles.ztst b/Test/V05styles.ztst index ca95b6348..c221d9db8 100644 --- a/Test/V05styles.ztst +++ b/Test/V05styles.ztst @@ -141,3 +141,13 @@ >scalar-style > :ztst:context:* second-scalar-value + (zstyle 'ctx?' foo one + zstyle 'ctx*' foo two + zstyle -s 'ctx1' foo bar && print $bar) + (zstyle 'ctx*' foo two + zstyle 'ctx?' foo one + zstyle -s 'ctx1' foo bar && print $bar) +0:patterns of equal weight are used in order of definition +>one +>two + -- cgit 1.4.1