From 329d5424a479bb08e75bd750c51a5382e382731c Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Tue, 18 Oct 2022 09:18:03 +0900 Subject: [Bug #19042] Fix Dir.glob brace with '/' Dir.glob brace pattern with '/' after '**' does not match paths in recursive expansion process. We expand braces with '/' before expanding a recursive. Co-authored-by: Nobuyoshi Nakada --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index a3ea5eea50..a35aace6f1 100644 --- a/dir.c +++ b/dir.c @@ -2305,7 +2305,7 @@ glob_helper( #endif break; case BRACE: - if (!recursive) { + if (!recursive || strchr(p->str, '/')) { brace = 1; } break; -- cgit v1.2.1