On Tue, May 09, 2006 at 10:26:10PM +0200, Michael Kerrisk wrote:
> tags 268121 fixed-upstream
> thanks,
> 
> Justin,
> 
> The final version of this page will appear in 2.33.  
> Just a few more details to fix.
> 
> > > I'm inclined to take this page, after fixing aa few small things.
> > > 
> > > A few comments:
> > > 
> > > > \fIresponse\fP should be a \fBNULL\fP-terminated string containing a
> > > 
> > > Please: "null terminated" (NULL and '\0' are NOT the same thing.)
> > Good point; I still like the hyphen, though.
> 
> Agreed -- it was actually just a typo in my email -- the man page
> has the hyphen.
> 
> > > > .SH BUGS
> > > > The \fBrpmatch\fP() implementation looks at only the first character
> > > > of \fIresponse\fP.  As a consequence, "nyes" returns 0, and the
> > > > following all return 1:
> > > > .RS
> > > > .sp
> > > > \*(lqyno, never; not in a million years\*(rq
> > > > .br
> > > > .TP
> > > > \*(lqyover my dead body\*(rq
> > > > .br
> > > > .TP
> > > > \*(lqywhenever hell freezes over\*(rq
> > > > .sp
> > > > .RE
> > > 
> > > My humour filter is hesitating over this for a moment...
> > :)  puleeaaase????  ...  edit at will.
> 
> I'll shrink it a little.
> 
> > > > It would be preferrable to accept parse input strings much more
> > > > strictly, for example: \fBm/^y(es?)$/i\fP and \fBm/^n(o?)$/i\fP.
> > > 
> > > What is the notation "m/^y(es?)$/i" -- why not just "/^y(es?)$/".
> > The /i has meaning, since "YES" is accepted; I don't much care about
> > the leading "m" though.
> 
> Sorry, I wasn't precise.  What do 'm' and 'i' *mean* here.  And
> what man page explains the notation.
It comes from perl, which probably stole it from sed:

man perlop |sed -rne '\#^ +m/.*/#,\#^ +[a-z]/#p'
man sed |perl -ne 'print if /^ +\\c/ .. /^$/'

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to