bugGNU nano - Bugs: bug #63446, including a non-existent file does...

 
 

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

bug #63446: including a non-existent file does not produce any message

Submitter:  Benno Schulenberg <bens>
Submitted:  Wed 30 Nov 2022 10:38:03 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Fri 02 Dec 2022 11:07:17 AM UTC, comment #2: 

Fixed in git, commit 4b35626a, by letting glob() return the filename or pattern itself when it matches nothing (instead of returning a GLOB_NOMATCH error), and by not returning silently from parse_one_include() when the given file does not exist or is unreadable.

Benno Schulenberg <bens>
Group administrator
Fri 02 Dec 2022 10:38:50 AM UTC, comment #1: 

Bug exists since version 4.0.  The offending commit is d3f0d32e: "don't report an error when the globbing pattern matches nothing".

What I don't understand is: I cannot reproduce the "...: Success" thing that is mentioned in that commit message.  I should have re-reported the issue on Savannah and included a reproduction recipe.  :/

Benno Schulenberg <bens>
Group administrator
Wed 30 Nov 2022 10:38:03 AM UTC, original submission:  

To reproduce, do the following:

echo 'include /home/nosuchfile' >tinyrc
src/nano --rc=tinyrc

See that nano does not complain.  Type ^X.  There is not any message on the terminal either.

Expected behavior: when the user includes a file that does not exsist (maybe they made a typo in the path or in the name), then nano should report a problem, and give an appropriate error message on the terminal.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-15 bens Open/ClosedOpen Closed
    2022-12-02 bens StatusIn Progress Fixed
    2022-12-02 bens StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code