bugGNU nano - Bugs: bug #49934, when a file already exists, the...

 
 

bug #49934: when a file already exists, the prompt bar is broken in two if the filename contains a newline

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon 26 Dec 2016 12:04:26 PM 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.

 

Mon 26 Dec 2016 08:53:17 PM UTC, comment #1:

Fixed in git, 99733666.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 26 Dec 2016 12:04:26 PM UTC, original submission:

To reproduce, run: echo stuff >"abc
def". And run: echo something >"klm
def". Then run 'nano klm*' and type:
^O <Home> <Del> <Del> <Del> abc <Enter>.
Type Y for the 'different name' question.
Now see how the prompt bar is spread over two lines:

File "abc
def" exists; OVERWRITE?

Expected behavior: an embedded newline in a filename should be represented as a ^J also in this case.

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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Dec 2016 08:12:59 PM UTCbensOpen/ClosedOpen=>Closed
    Mon 26 Dec 2016 08:53:57 PM UTCbensSummarywhen a file already exists, the prompbar is broken in two if the filename contains a newline=>when a file already exists, the prompt bar is broken in two if the filename contains a newline
    Mon 26 Dec 2016 08:53:17 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1