DragonFly bugs List (threaded) for 2009-06
DragonFly BSD
DragonFly bugs List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1399] fnmatch(3) escapes '0' to '\'


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 Jun 2009 02:13:36 +0000

Stathis Kamperis <ekamperi@gmail.com> added the comment:

>> Suppose that we supply fnmatch(3) with a pattern of the form "\" (that is '\'
>> followed by '0') without setting the FNM_NOESCAPE flag. Wouldn't the normal
>> thing to do is escape the terminating character and return just '0' ? Instead
>> '\' is returned. As if one has provided a pattern "\\".
> I guess that also happens for any other trailing \.  In this case I'd keep 
> the current behavior, because I'd expect more the \ to be used, than it to 
> 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>
_____________________________________________________



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]