Description of problem: Some options described in 'less --help' are misleading, for example: -n -N .... --line-numbers --LINE-NUMBERS Don't use line numbers. The lower-case -n and --line-numbers does suppress line numbers as described, however, the upper-case -N and --LINE-NUMBERS enables the line-numbers. This should be split into multiple lines: -n ........ --line-numbers Don't use line numbers. -N ........ --LINE-NUMBERS Use line numbers. Also, the upper-case -C and --CLEAR-SCREEN are missing from 'less --help'. These options were correctly described in RHEL 5.4's less. Version-Release number of selected component (if applicable): less-436-2.el5 How reproducible: every time Steps to Reproduce: 1. less --help 2. look for -N and --LINE-NUMBER 3. look for -C and --CLEAR-SCREEN Actual results: -N and --LINE-NUMBER are described as "Don't use line numbers." -C and --CLEAR-SCREEN are not described Expected results: -N and --LINE-NUMBER are described as "Use line numbers." -C and --CLEAR-SCREEN are defined with -c and -clear-screen Additional info: The less(1) man page describes both options correctly: -c or --clear-screen Causes full screen repaints to be painted from the top line down. By default, full screen repaints are done by scrolling from the bottom of the screen. -C or --CLEAR-SCREEN Same as -c, for compatibility with older versions of less. ... -n or --line-numbers Suppresses line numbers. The default (to use line numbers) may cause less to run more slowly in some cases, especially with a very large input file. Suppressing line numbers with the -n option will avoid this problem. Using line numbers means: the line number will be displayed in the verbose prompt and in the = command, and the v command will pass the current line number to the editor (see also the discussion of LESSEDIT in PROMPTS below). -N or --LINE-NUMBERS Causes a line number to be displayed at the beginning of each line in the display.
Created attachment 403586 [details] patch to update online help
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, the less --help contained incorrect descriptions of some options. With this update, all options are described correctly.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0805.html