From a0d56c7b7c3e27ef8c496d495d596b71504deb17 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Wed, 20 Sep 2023 14:25:51 +0200 Subject: [PATCH] Added warning against using glob patterns on Windows We have found issues regarding the use of glob patterns on Windows (see tickets below). However, we will not fix these issues before the next minor release. Therefore, we added a warning in the documentation advising to safeguard against any use on the Windows platforms. Ticket: ENT-10250, ENT-10490 Changelog: None Signed-off-by: Lars Erik Wik --- reference/functions/findfiles.markdown | 7 +++++++ reference/functions/findfiles_up.markdown | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/reference/functions/findfiles.markdown b/reference/functions/findfiles.markdown index b0bfdc1a1..e3a650629 100644 --- a/reference/functions/findfiles.markdown +++ b/reference/functions/findfiles.markdown @@ -22,6 +22,13 @@ deep. This function, used together with the `bundlesmatching` function, allows you to do dynamic inputs and a dynamic bundle call chain. +**WARNING:** +- The current implementation of glob patterns on Windows contains bugs. + Therefore, we strongly advise using the `!windows::` class guard expression to + safeguard against any use of the function on Windows platforms. Rest assured, + we are actively working on resolving these issues and improving its + functionality. + **Notes:** - Brace expansion is not currently supported, `{x,y,anything}` will not match `x` or `y` or `anything`. diff --git a/reference/functions/findfiles_up.markdown b/reference/functions/findfiles_up.markdown index 2b327e715..5294f1917 100644 --- a/reference/functions/findfiles_up.markdown +++ b/reference/functions/findfiles_up.markdown @@ -24,6 +24,13 @@ shells: * `?` matches a single letter * `[a-z]` matches any letter from `a` to `z` +**WARNING:** +- The current implementation of glob patterns on Windows contains bugs. + Therefore, we strongly advise using the `!windows::` class guard expression to + safeguard against any use of the function on Windows platforms. Rest assured, + we are actively working on resolving these issues and improving its + functionality. + **Notes:** - Brace expansion is not currently supported, `{x,y,anything}` will not match `x` or `y` or `anything`.