Description of problem: The manual page for "man" gives this form for getting summary lines: man -k [apropos options] regexp ... The manual page for "apropos" shows that the -l option can be used to prevent trimming of displayed lines to the terminal width. Nonetheless, the form: man -k -l regexp does not show the full lines, they are trimmed to the terminal width. (No error message is given, either. Version-Release number of selected component (if applicable): man-db-2.6.3-8.fc19.x86_64 How reproducible: Reliably reproducible. Steps to Reproduce: 1. "man -k -l attribute" Actual results: Displayed lines are truncated to terminal width. E.g., add_wchnstr (3x) - add an array of complex characters (and attributes) to ... Expected results: The same output as for "apropos -l", that is, not truncated. E.g., add_wchnstr (3x) - add an array of complex characters (and attributes) to a curses window Additional info: None.
It's hard to get everything right here because of effectively having to change option parsing semantics in midstream; but we can handle this specific case easily enough, so fixed upstream. http://git.savannah.gnu.org/cgit/man-db.git/commit/?id=81a66229658bfe38067ec001976cfecdf4bfeedf
Given the simplicity of the "man -k" form, I'd think it would be easier to invoke apropos directly, just passing it the remaining arguments: char * const *new_argv = malloc(argc * sizeof (char * const)); new_argv[0] = "apropos"; memcpy(new_argv + 1, argv + 2, (argc - 1) * sizeof (char * const)); execvp("apropos", new_argv); That way man doesn't need to know anything about the arguments to apropos.
Hello, thanks Colin for the patch. Dale, I will wait till Wednesday till your proposal is settled down. Jan
man-db-2.6.3-9.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/man-db-2.6.3-9.fc19
f19: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20141110/1445550.html f20: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20141110/1445615.html f21: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20141110/1445618.html master: https://lists.fedoraproject.org/pipermail/scm-commits/Week-of-Mon-20141110/1445621.html
man-db-2.6.5-6.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/man-db-2.6.5-6.fc20
man-db-2.6.7.1-12.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/man-db-2.6.7.1-12.fc21
(In reply to Dale R. Worley from comment #2) > Given the simplicity of the "man -k" form, I'd think it would be easier to > invoke apropos directly, just passing it the remaining arguments: I agree in general; it just involves a bit more reorganisation (and thinking about what happens in the event that -k occurs in the middle of the options rather than the start). Would you mind filing an upstream bug report for that? https://savannah.nongnu.org/bugs/?group=man-db
(In reply to Colin Watson from comment #8) > Would you mind filing an upstream bug report for > that? https://savannah.nongnu.org/bugs/?group=man-db I have submitted this issue upstream at https://savannah.nongnu.org/support/index.php?108684
Package man-db-2.6.3-9.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing man-db-2.6.3-9.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-15032/man-db-2.6.3-9.fc19 then log in and leave karma (feedback).
man-db-2.6.7.1-12.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
man-db-2.6.5-6.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.