bugGNU nano - Bugs: bug #59530, 'nano -#' (and similar) blurt out...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59530: 'nano -#' (and similar) blurt out the help text

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 24 Nov 2020 08:57:05 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 24 Nov 2020 09:15:40 AM UTC, comment #1: 

Fixed in git, commit 743100fe, which reverts commit 5bd92d4c.

Benno Schulenberg <bens>
Group administrator
Tue 24 Nov 2020 08:57:05 AM UTC, original submission:  

Since version 5.3, 'nano -@' and 'nano -#' and 'nano -8' and such blurt out the full help text.  This is unexpected and undesirable.

Bug exists since commit 5bd92d4c: "add -? as a synonym of -h (--help), but leave it undocumented".

The problem is that getopt() returns '?' when it encounters an unrecognized option.  :/  So the removal of "-?" in commit 43019189 six years ago was not an accident but was necessary.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-03 bens Open/ClosedOpen Closed
    2020-11-24 bens StatusIn Progress Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code