From eb4a0b25600fc84ef651651de24ca4c202b33d4f Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 8 Apr 2025 17:13:18 +0200 Subject: [PATCH] docs: Fix string-match glob examples `?` no longer is a wildcard. See #11361 --- doc_src/cmds/string-match.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc_src/cmds/string-match.rst b/doc_src/cmds/string-match.rst index 5121d2e04..94b652784 100644 --- a/doc_src/cmds/string-match.rst +++ b/doc_src/cmds/string-match.rst @@ -52,13 +52,13 @@ Match Glob Examples :: - >_ string match '?' a + >_ string match 'a' a a >_ string match 'a*b' axxb axxb - >_ string match -i 'a??B' Axxb + >_ string match -i 'a*B' Axxb Axxb >_ string match -- '-*' -h foo --version bar @@ -67,7 +67,7 @@ Match Glob Examples -h --version - >_ echo 'ok?' | string match '*\?' + >_ echo 'ok?' | string match '*?' ok? # Note that only the second STRING will match here. @@ -79,7 +79,7 @@ Match Glob Examples foo foo2 - >_ string match 'foo?' 'foo1' 'foo' 'foo2' + >_ string match 'foo*' 'foo1' 'foo' 'foo2' foo1 foo2