bugGNU nano - Bugs: bug #57942, nanorc file allows empty regex...

 
 

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

bug #57942: nanorc file allows empty regex after 'syntax', 'header', and 'magic'

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 02 Mar 2020 06:32:44 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 03 Mar 2020 06:35:40 PM UTC, comment #1: 

Fixed in git, commit 5eb71459.

Benno Schulenberg <bens>
Group administrator
Mon 02 Mar 2020 06:32:44 PM UTC, original submission:  

To reproduce, put the following lines at the end of your .nanorc:

syntax test ""
header ""
magic ""
color green "word"
color blue ""

Then run nano and exit.  See that nano only complains about the empty regex string after 'color blue'.

Expected behavior: nano should also complain about empty regexes after 'syntax' and 'header' and 'magic'.  If the user really wants to match anything, then they should use ".*" -- that is clearer and more explicit.

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-03-25 bens Open/ClosedOpen Closed
    2020-03-03 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code