Skip to content

Commit

Permalink
Now mentiones lack of square bracket glob expression support on Windows
Browse files Browse the repository at this point in the history
Ticket: ENT-10250
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
  • Loading branch information
larsewi committed Sep 15, 2023
1 parent 591f3f5 commit 2df0a7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion reference/functions/findfiles.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ match all files in one directory that end in `.cf` but it won't search
across directories. `*/*.cf` on the other hand will look two levels
deep.
* `?` matches a single letter
* `[a-z]` matches any letter from `a` to `z`
* `[a-z]` matches any letter from `a` to `z` (not yet supported on Windows)

This function, used together with the `bundlesmatching` function,
allows you to do dynamic inputs and a dynamic bundle call chain.

**Notes:**

- Brace expansion is not currently supported, `{x,y,anything}` will not match `x` or `y` or `anything`.
- Bracket expressions are currently not supported on Windows. `[a-z]` will be interpreted as its raw string representation on Windows.

**Example:**

Expand Down
3 changes: 2 additions & 1 deletion reference/functions/findfiles_up.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ shells:

* `*` matches any filename or directory
* `?` matches a single letter
* `[a-z]` matches any letter from `a` to `z`
* `[a-z]` matches any letter from `a` to `z` (not yet supported on Windows)

**Notes:**

- Brace expansion is not currently supported, `{x,y,anything}` will not match `x` or `y` or `anything`.
- Bracket expressions are currently not supported on Windows. `[a-z]` will be interpreted as its raw string representation on Windows.

[%CFEngine_function_attributes(path, glob, level)%]

Expand Down

0 comments on commit 2df0a7f

Please sign in to comment.