bugGNU nano - Bugs: bug #57411, [Request] let syntax 'sh' cater...


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

bug #57411: [Request] let syntax 'sh' cater for distributions with "exotic" bashrc locations

Submitted by:  bird
Submitted on:  Sat 14 Dec 2019 03:07:59 PM UTC
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Tue 24 Dec 2019 09:14:20 AM UTC, comment #4: 

The change has been released in 4.7.

Benno Schulenberg <bens>
Project Administrator
Mon 16 Dec 2019 06:15:23 PM UTC, comment #3: 

Thanks for confirming.  Fixed in git, commit 26d88ccb.

Benno Schulenberg <bens>
Project Administrator
Mon 16 Dec 2019 12:03:10 AM UTC, comment #2: 

Yes, it uses the same zsh defaults as Arch.

Your suggestion worked perfectly, thanks.

Sun 15 Dec 2019 12:24:57 PM UTC, comment #1: 

Thanks for reporting.

If you install another shell, say zsh, does its default rc file get installed as /etc/zsh/zshrc?  If yes, then it would be better to make the filename regex in sh.nanorc more general, by replacing the second "\." with "(\.|/)".

Benno Schulenberg <bens>
Project Administrator
Sat 14 Dec 2019 03:07:59 PM UTC, original submission:  


I'm using Artix GNU/Linux, which has its default root bashrc at /etc/bash/bashrc and isn't recognised by sh.nanorc.

I solved this by adding "|bashrc" into the sh syntax after "profile", but there might be more precise options.

Thank you.



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

Attach Files:

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 (Posted a comment)
  • -email is unavailable- added by bird (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.

    Only logged-in users can vote.





    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-24 bens Open/ClosedOpen => Closed
    2019-12-16 bens StatusNeed Info => Fixed
    2019-12-15 bens StatusNone => Need Info
        Summary[Request] Add "bashrc" to sh.nanorc to include distributions with "exotic" bashrc locations => [Request] let syntax 'sh' cater for distributions with "exotic" bashrc locations
    2019-12-15 bens Severity3 - Normal => 1 - Wish
        Assigned toNone => bens

    Back to the top

    Powered by Savane 3.9