Bug 223525 - apropos(1) needs to normalize the comma in name list
Summary: apropos(1) needs to normalize the comma in name list
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-08 11:06 UTC by Wolfram Schneider
Modified: 2021-04-05 15:48 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schneider freebsd_committer 2017-11-08 11:06:15 UTC
On FreeBSD-current I get

$ apropos c99
c99(1) - standard C language compiler
c99, c, c78, c89, c90, c,, c78,, c89,, c90,(7) - The C programming language

You see double commas “,,” and a trailing comma after c90.

On FreeBSD 10 the results looks better formated:
$ apropos c99
c(7), c78(7), c89(7), c90(7), c99(7) - The C programming language
c99(1)                   - standard C language compiler
Comment 1 commit-hook freebsd_committer 2018-04-17 09:06:10 UTC
A commit references this bug:

Author: trasz
Date: Tue Apr 17 09:05:48 UTC 2018
New revision: 332642
URL: https://svnweb.freebsd.org/changeset/base/332642

Log:
  Don't put multiple names on a single .Nm line.  This fixes apropos(1)
  output, from this:

  strnlen, strlen, strlen,(3) - find length of string                                                                                                                                                     ????????

  ... to this:

  strlen, strnlen(3) - find length of string

  PR:		223525
  MFC after:	2 weeks

Changes:
  head/contrib/bsnmp/snmpd/snmpmod.3
  head/lib/libc/locale/isdigit.3
  head/lib/libc/locale/isxdigit.3
  head/lib/libc/stdio/printf.3
  head/lib/libc/stdlib/qsort.3
  head/lib/libc/string/strcpy.3
  head/lib/libc/string/strlen.3
  head/lib/libc/sys/fsync.2
  head/lib/libufs/ufs_disk_close.3
  head/share/man/man7/c99.7
  head/share/man/man9/OF_device_from_xref.9
  head/share/man/man9/printf.9