Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8808589
)
Change most SAME-AS-FNMATCH "false" values to "true" (since we _should_
author
Wayne Davison
<wayned@samba.org>
Sat, 5 Jul 2003 07:03:56 +0000
(07:03 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 5 Jul 2003 07:03:56 +0000
(07:03 +0000)
work the same as fnmatch in most cases, if fnmatch was actually working
right).
wildtest.c
patch
|
blob
|
blame
|
history
diff --git
a/wildtest.c
b/wildtest.c
index
53a3933
..
1f7516e
100644
(file)
--- 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? */
/* Additional tests, including some malformed wildmats. */
/* TEST, "text", "pattern", MATCH?, SAME-AS-FNMATCH? */
- beg(500, "]", "[\\-_]", true,
fals
e);
+ beg(500, "]", "[\\-_]", true,
tru
e);
beg(501, "[", "[\\-_]", false, true);
beg(502, ".", "[\\\\-_]", false, true);
beg(501, "[", "[\\-_]", false, true);
beg(502, ".", "[\\\\-_]", false, true);
- beg(503, "^", "[\\\\-_]", true,
fals
e);
+ beg(503, "^", "[\\\\-_]", true,
tru
e);
beg(504, "Z", "[\\\\-_]", false, true);
beg(505, "\\", "[\\]]", false, true);
beg(506, "ab", "a[]b", false, 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(529, "[", "[!]-a]", true, true);
beg(530, "^", "[a^bc]", true, true);
beg(531, "-b]", "[a-]b]", true, true);
- beg(532, "\\]", "[\\]]", true,
fals
e);
- beg(533, "\\", "[\\]", true,
fals
e);
- beg(534, "\\", "[!\\]", false,
false); /*FN?*/
- beg(535, "G", "[A-\\]", true,
fals
e);
+ beg(532, "\\]", "[\\]]", true,
tru
e);
+ beg(533, "\\", "[\\]", true,
tru
e);
+ beg(534, "\\", "[!\\]", false,
true);
+ beg(535, "G", "[A-\\]", true,
tru
e);
beg(536, "aaabbb", "b*a", false, true);
beg(537, "aabcaa", "*ba*", false, true);
beg(538, ",", "[,]", true, true);
beg(539, ",", "[\\,]", 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,
fals
e);
+ beg(540, "\\", "[\\,]", true,
tru
e);
beg(541, "-", "[,-.]", true, true);
beg(542, "+", "[,-.]", false, true);
beg(543, "-.]", "[,-.]", false, true);
beg(541, "-", "[,-.]", true, true);
beg(542, "+", "[,-.]", false, true);
beg(543, "-.]", "[,-.]", false, true);