tags 571285 fixed-upstream
thanks

On Wed, Feb 24, 2010 at 06:16:56PM -0500, A. Costa wrote:
> Two extant sections, only last prints:
> 
>     % whatis -s 1 -s 3 printf
>     printf (3)           - formatted output conversion
>     % whatis -s 1 -s 1 printf
>     printf (1)           - format and print data
>     % whatis -s 3 -s 1 printf
>     printf (1)           - format and print data
[...]
> ...but it'd be less convenient than:
> 
>     whatis -s 1 -s 8 printf 
> 
> ...or something like:
> 
>     whatis -s '[18]' printf

Thanks for your report.  I haven't implemented this quite the way you
suggested, but in man-db 2.6.0 you'll be able to say:

  whatis -s 1:3 printf

et al.

Thu Dec  2 23:54:03 GMT 2010  Colin Watson  <cjwat...@debian.org>

        Allow passing multiple sections to whatis and apropos (Debian bug
        #571285).

        * src/whatis.c (options): Allow spelling --section as --sections;
          this is now the preferred long spelling.  Document that the
          argument may be colon-separated.
          (split_sections): New function.
          (parse_opt): Pass -s argument through split_sections.
          (do_whatis): Move most logic to ...
          (do_whatis_section): ... here.
          (do_whatis): Iterate over sections, calling do_whatis_section for
          each.
          (do_apropos): Test all requested sections.
        * man/man1/apropos.man1 (SYNOPSIS, OPTIONS), man/man1/whatis.man1
          (SYNOPSIS, OPTIONS): Document new semantics.
        * man/po4a/po/man-db-manpages.pot, man/po4a/po/*.po: Update.
        * NEWS: Document this.

Regards,

-- 
Colin Watson                                       [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to