Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: shawnwilliamson on March 25, 2021, 01:37:32 AM

Title: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: shawnwilliamson on March 25, 2021, 01:37:32 AM
Hello again,

Every time I edit a file with nano (my favorite editor) it gives the error:
Error in /usr/local/etc/nanorc on line 2: Unknown option "const"

It doesn't cause problems. Nano works correctly, it just gives an error.
I wanted to edit the offending file, but it's mounted read only and I haven't read yet how to unsquash/edit/ re squash an extension for my own amusement yet.

Thank you again for tinycore!

Shawn
Title: Re: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: bmarkus on March 25, 2021, 02:37:41 AM
In which repo?
Title: Re: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: g_dg on May 24, 2021, 10:10:29 AM
I have this same issue. I'm using "http://repo.tinycorelinux.net/12.x/x86".
Title: Re: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: Rich on May 24, 2021, 11:14:05 AM
Hi g_dg
Welcome to the forum.

It may be due to this (emphasis mine):
Quote
       set constantshow
          Constantly display the cursor position in the  status  bar.   (The  old  form  of  this
          option, 'set const', is deprecated.)
  This overrides the option quickblank.
Found here:
http://manpages.ubuntu.com/manpages/bionic/man5/nanorc.5.html

Check if the file  /usr/local/etc/nanorc  contains the line  set const.
If it does, convert the symlink to a file:
Code: [Select]
sudo busybox cp /usr/local/etc/nanorc /usr/local/etc/Then edit the file and change  set const  to  set constantshow  and save the file. You may have to do this step as root.
Start nano and see if the error is gone. If it is, you can add it to your backup for the time being.
Title: Re: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: g_dg on May 24, 2021, 11:59:05 AM
That fixed the problem for me.
Thanks.
Title: Re: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: Rich on May 24, 2021, 12:12:45 PM
Hi g_dg
You are welcome. Thanks for confirming that fixed it.
Title: Re: Nano error:Error in /usr/local/etc/nanorc on line 2: Unknown option "const"
Post by: Rich on October 12, 2021, 11:45:19 PM
This issue has been reported again and has been addressed here:
http://forum.tinycorelinux.net/index.php/topic,25273.0.html