[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/tests/lib/libc/gen
On Sun, Oct 12, 2014 at 11:33 PM, Christos Zoulas <christos%netbsd.org@localhost> wrote:
> Module Name: src
> Committed By: christos
> Date: Sun Oct 12 22:33:41 UTC 2014
> Modified Files:
> src/tests/lib/libc/gen: t_fnmatch.c
> Log Message:
> You need double the number of backslashes in a pattern, since \\ -> '\' in
> the string which means escape. Now the tests don't fail.
> To generate a diff of this commit:
> cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/gen/t_fnmatch.c
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
Not sure about this. See
"The special characters '.', '*', '[', and '\' (period, asterisk,
left-bracket, and backslash, respectively) shall lose their special
meaning within a bracket expression."
So I think the original version of the test is in fact correct with a
single \ in the actual string within the bracket expression. This test
passes in a very few implementations. I might be wrong though...
Main Index |
Thread Index |