bugGNU nano - Bugs: bug #49874, it is not possible to save a file...

 
 

bug #49874: it is not possible to save a file whose name contains a newline

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sun 18 Dec 2016 10:02:03 AM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 18 Dec 2016 11:35:23 AM UTC, comment #1:

Fixed in git, 0b0b8122.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sun 18 Dec 2016 10:02:03 AM UTC, original submission:

To reproduce, run: echo characters >"abc
def". Then run 'nano --ignore abc*def'.
Type a few characters and then type ^O <Enter>.
Nano asks: "Save file under DIFFERENT NAME?"
But we didn't change the name at all. Type Y anyway.
Now nano says (spread over two lines): File "abc
def" exists; OVERWRITE?
Oh well, let's say Y. But now exit from nano and
look at your directory. The file that actually has
been written is abc.

Expected behavior: nano should treat embedded newlines in a filename like any other control character: represent it instead of acting upon it.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Dec 2016 10:28:08 AM UTCbensOpen/ClosedOpen=>Closed
    Sun 18 Dec 2016 11:35:23 AM UTCbensStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1