看板 DFBSD_bugs 關於我們 聯絡資訊
Stathis Kamperis <ekamperi@gmail.com> added the comment: >> Suppose that we supply fnmatch(3) with a pattern of the form "\" (that i= s '\' >> followed by '0') without setting the FNM_NOESCAPE flag. Wouldn't the nor= mal >> thing to do is escape the terminating character and return just '0' ? In= stead >> '\' is returned. As if one has provided a pattern "\\". > I guess that also happens for any other trailing \. In this case I'd kee= p=20 > the current behavior, because I'd expect more the \ to be used, than it t= o=20 > just disappear. It happens only with the last \ before '0'. But what bugs me most, is that = it escapes it while we are in non-escape mode (FNM_NOESCAPE flag set). Cheers, Stathis _____________________________________________________ DragonFly issue tracker <bugs@lists.dragonflybsd.org> <http://bugs.dragonflybsd.org/issue1399> _____________________________________________________