bugGNU nano - Bugs: bug #47307, nano chooses syntax based on name...

 
 

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

bug #47307: nano chooses syntax based on name of target file, not based on name of symlink

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 29 Feb 2016 04:05:03 PM UTC
   
 
Severity:  4 - Important Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 14 May 2016 07:16:13 AM UTC, comment #3: 

This change also fixed an issue whereby nano would crash on launch every time on some systems because of incorrect usage of realpath().  Passing NULL as the second argument is not portable.

Jeremy Huddleston Sequoia <jeremyhu>
Mon 29 Feb 2016 04:57:41 PM UTC, comment #2: 

Fixed in SVN, r5703.

Benno Schulenberg <bens>
Group administrator
Mon 29 Feb 2016 04:16:12 PM UTC, comment #1: 

The offending commit is r5218 -- the fix for bug #44288.

Benno Schulenberg <bens>
Group administrator
Mon 29 Feb 2016 04:05:03 PM UTC, original submission:  

Run:

cp  src/winio.c  wiwi.py
ln -s  wiwi.py  cccc.c
src/nano  wiwi.py
src/nano  cccc.c

See that both "files" are colored as if it were a Python file -- that is: according to the extension of the actual file.

Vim and emacs and joe don't behave that way: they will color things according to the Python syntax when editing wiwi.py, and according to the C syntax when editing cccc.c.  So surely nano should do the same.

Bug is present since nano-2.4.2.

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 jeremyhu (Posted a comment)
  • -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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-20 bens Open/ClosedOpen Closed
    2016-02-29 bens Severity3 - Normal 4 - Important
        StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code