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

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Wed Jun 10 14:42:41 PDT 2009


Stathis Kamperis (via DragonFly issue tracker) wrote:
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.

cheers
  simon
--
  <3 the future  +++  RENT this banner advert  +++   ASCII Ribbon   /"\
  rock the past  +++  space for low CHF NOW!1  +++     Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




More information about the Bugs mailing list