On Thu, May 18, 2006 at 11:49:15PM +0200, Michael Kerrisk wrote: > Justin, > > > > > Any suggestions about other pages whose SEE ALSO should mention this > > > > page? > > > Not really ... I'll have to think about it. > > I'm including patches to add a SEE ALSO, and also to fix and tweak the > > page based on some new\-found understanding .. > > > > If you tell me where to get your most recent copy, then I'll provide a > > patch against that. > > > > Justin > >
> > +only the first character of \fIresponse\fP is considered significant. > > +Responses matching \fBm/^[Yy]/i\fP are always accepted as affirmative > > +(in any locale), and those matching > > +\fBm/^[Nn]/i\fP are always accepted as negative. > > This is more detail than I think is really required to explain > the point. You already say that just the first character is > significant. The additional RE isn't needed. But this happens for any locale; it is a behaviour to document, not an implementation. > .SH BUGS > The \fBrpmatch\fP() implementation looks at only the first character > of \fIresponse\fP. As a consequence, "nyes" returns 0, and > "ynever; not in a million years" returns 1. > It would be preferable to accept input strings much more > strictly, for example (using the extended regular > expression notation described in \fBregex\fP(7)): > \fB([yY]|yes|YES)\fP and \fB([nN]|no|NO)\fP. Why not anchor with "^" and "$"? Justin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

