From: Wayne Davison Date: Sat, 5 Jul 2003 07:03:56 +0000 (+0000) Subject: Change most SAME-AS-FNMATCH "false" values to "true" (since we _should_ X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/af7086c63f5f7b4a1a057e63165414ad99a610ce Change most SAME-AS-FNMATCH "false" values to "true" (since we _should_ work the same as fnmatch in most cases, if fnmatch was actually working right). --- diff --git a/wildtest.c b/wildtest.c index 53a39331..1f7516e0 100644 --- a/wildtest.c +++ b/wildtest.c @@ -170,10 +170,10 @@ main(int argc, char **argv) /* Additional tests, including some malformed wildmats. */ /* TEST, "text", "pattern", MATCH?, SAME-AS-FNMATCH? */ - beg(500, "]", "[\\-_]", true, false); + beg(500, "]", "[\\-_]", true, true); beg(501, "[", "[\\-_]", false, true); beg(502, ".", "[\\\\-_]", false, true); - beg(503, "^", "[\\\\-_]", true, false); + beg(503, "^", "[\\\\-_]", true, true); beg(504, "Z", "[\\\\-_]", false, true); beg(505, "\\", "[\\]]", false, true); beg(506, "ab", "a[]b", false, true); @@ -202,15 +202,15 @@ main(int argc, char **argv) beg(529, "[", "[!]-a]", true, true); beg(530, "^", "[a^bc]", true, true); beg(531, "-b]", "[a-]b]", true, true); - beg(532, "\\]", "[\\]]", true, false); - beg(533, "\\", "[\\]", true, false); - beg(534, "\\", "[!\\]", false, false); /*FN?*/ - beg(535, "G", "[A-\\]", true, false); + beg(532, "\\]", "[\\]]", true, true); + beg(533, "\\", "[\\]", true, true); + beg(534, "\\", "[!\\]", false, true); + beg(535, "G", "[A-\\]", true, true); beg(536, "aaabbb", "b*a", false, true); beg(537, "aabcaa", "*ba*", false, true); beg(538, ",", "[,]", true, true); beg(539, ",", "[\\,]", true, true); - beg(540, "\\", "[\\,]", true, false); + beg(540, "\\", "[\\,]", true, true); beg(541, "-", "[,-.]", true, true); beg(542, "+", "[,-.]", false, true); beg(543, "-.]", "[,-.]", false, true);