From 78e412945510792b96c5cf00291225d505c4855f Mon Sep 17 00:00:00 2001 From: jamiecobbett Date: Thu, 30 Jan 2025 18:22:15 +0000 Subject: [PATCH] Clarify double asterisk behaviour I did not understand what "super-asterisk" means, and I had naively assumed that the behaviour would match glob implementations I am used to. --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 682f0d6..98b1a53 100644 --- a/readme.md +++ b/readme.md @@ -144,5 +144,6 @@ Pattern | Fixture | Match | Speed (ns/op) ## Syntax -Syntax is inspired by [standard wildcards](http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm), -except that `**` is aka super-asterisk, that do not sensitive for separators. +Syntax is inspired by [standard wildcards](http://tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655.htm). + +Note that the behaviour of `**` is different from typical glob implementations. It does not have the special behaviour of things like the `ls` terminal command. In tools like `ls`, a double-asterisk matches _zero or more directories deep_, in this library it matches _1+ directories deep_.