Re: Should the patterns(7) manual use C-style indexing of strings?

2015-06-26 Thread Sebastien Marie
On Thu, Jun 25, 2015 at 02:31:24PM +0200, Theo Buehler wrote: > > Thus, I suggest to modify the patterns(7) manual as follows: > > Index: usr.sbin/httpd/patterns.7 > === > RCS file: /cvs/src/usr.sbin/httpd/patterns.7,v > retrieving r

Should the patterns(7) manual use C-style indexing of strings?

2015-06-25 Thread Theo Buehler
>From http://www.lua.org/manual/5.3/manual.html#6.4: When indexing a string in Lua, the first character is at position 1 (not at 0, as in C). The example of applying the pattern "()aa()" to the string "flaaap" in the manpage shows that the empty captures "()" capture the positions between the