On Thu, Jun 07, 2018 at 01:33:01PM +0300, Leonid Bobrov wrote:
> On Thu, Jun 07, 2018 at 12:14:00PM +0200, Andreas Kusalananda Kähäri wrote:
> > Reading the source (/usr/src/usr.bin/mg/re_search.c), it seems as if it
> > uses regcomp() to compile extended regular expressions.
> >
> > So that ought to mean that it too supports (extended) regular
> > expressions as described by re_format(7).
> >
>
> Thank you for clear answer. But in that case manual page is useless
> because source code is the best documentation available xD

I would not call the manual "useless" unless it's *wrong* in some way.
But it's true that the source code is the best documentation for what a
program *actually* does, provided that one is able and willing to read
it.  For someone who is not proficient in C, the source code is often
lousy documentation.

I'll leave it to others to decide whether this is a "documentation bug"
for mg(1) or not.

Cheers,

--
Andreas Kusalananda Kähäri,
National Bioinformatics Infrastructure Sweden (NBIS),
Uppsala University, Sweden.




När du har kontakt med oss på Uppsala universitet med e-post så innebär det att 
vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du 
läsa här: https://mp.uu.se/c/perm/link?p=178072158

E-mailing Uppsala University means that we will process your personal data. For 
more information on how this is performed, please read here: 
https://mp.uu.se/c/perm/link?p=178072158

Reply via email to