bugGNU nano - Bugs: bug #42639, opening a file in a non-existent...


bug #42639: opening a file in a non-existent directory gives a strange statusbar message

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat Jun 28 14:21:07 2014  
Severity: 3 - NormalStatus: Fixed
Assigned to: Chris Allegretta <astyanax>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Fri Jul 11 10:41:00 2014, comment #3:

Thanks for catching that! Re-fixed in r5058.

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Thu Jul 10 10:11:12 2014, comment #2:

Oooff. Revision 5056 breaks nano for me: I cannot open any file any more, it says: "[ Error writing lock file: Directory '/home/ben/Repositories/LATEST' doesn't exist ]" -- but the directory does exist, I'm right in the middle of it: src/nano TODO.

Benno Schulenberg <bens>
Project Administrator
Thu Jul 3 04:01:29 2014, comment #1:

Fixed in r5056.

Now that I'm thinking about it though, there's a bigger problem, which is that when using locking, we now seem to drop the file passed on the command line if we run into locking issues, which is not the previous behavior. Fixing that will probably obviate this issue, but I'll open a new bug regardless.

Chris Allegretta <astyanax>
Project AdministratorIn charge of this item.
Sat Jun 28 14:21:07 2014, original submission:

Trying to open a file in a directory that does not exist, produces a puzzling error message on the statusbar.

Try running 'nano thisisatypo/somefile'. Nano will show an empty buffer and the statusbar will say: "[ Error writing lock file thisisatypo/.somefile.swp: Bad file descriptor ]".

Nano should recognize that some component of the given patch does not exist and, with a warning, skip that command-line argument.

Benno Schulenberg <bens>
Project Administrator


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

Attach File(s):

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 astyanax (Updated the item)
  • -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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Apr 28 19:36:38 2015bensOpen/ClosedOpen=>Closed
    Fri Jul 11 10:41:00 2014astyanaxStatusIn Progress=>Fixed
    Thu Jul 10 10:11:12 2014bensStatusFixed=>In Progress
    Thu Jul 3 04:01:29 2014astyanaxStatusNone=>Fixed
    Thu Jul 3 02:52:22 2014astyanaxAssigned toNone=>astyanax
    Sun Jun 29 21:12:16 2014bensSummaryopening a file in a non-existent directory gives strange error message=>opening a file in a non-existent directory gives a strange statusbar message

    Back to the top

    Powered by Savane 3.1-cleanup1