Add possiblity to support specifying desired section of manpage
vda.linux at googlemail.com
Sun Dec 27 16:45:57 UTC 2020
miscutils/man.c: In function ‘man_main’:
miscutils/man.c:343:2: error: ISO C90 forbids mixed declarations and
343 | char sect_str;
miscutils/man.c:395:4: error: ISO C90 forbids mixed declarations and
395 | const char *cur_sect = sec_list;
miscutils/man.c:390:14: error: ‘sect_len’ may be used uninitialized in
this function [-Werror=maybe-uninitialized]
390 | found |= check_path(cur_path, sect_str, sect_len, *argv);
I can implement it differently. Please try current git.
On Tue, Dec 22, 2020 at 7:10 PM depsterr <depsterr at protonmail.com> wrote:
> I have created a new patch which handles both the
> section page
> formats. (The page(section) format has been ignored as it is less common and more tedious to implement.)
> This patch also fixes a few typos in the previous patch. This should be my final version of this patch.
> Thanks to everyone for the feedback! Hopefully this can get merged :)
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Tuesday, December 22, 2020 5:15 PM, Harald van Dijk <harald at gigawatt.nl> wrote:
> > On 22/12/2020 15:42, Xabier Oneca -- xOneca wrote:
> > > Hi Depsterr,
> > >
> > > > Usage: man [-aw] MANPAGE[.SECTION]...
> > >
> > > That does not seem to be compatible with the standard man:
> > > man [OPTION...] [SECTION] PAGE...
> > It is not so much incompatible as it is incomplete. The widely used
> > man-db implementation of man does support this form as well. It supports
> > three forms of specifying the section, which all do the same thing:
> > man 7 man
> > man man.7
> > man 'man(7)'
> > Cheers,
> > Harald van Dijk
> busybox mailing list
> busybox at busybox.net
More information about the busybox